Skip to content

Commit

Permalink
docs menu added
Browse files Browse the repository at this point in the history
  • Loading branch information
MertGunduz committed Nov 17, 2023
1 parent 014afd4 commit 8faf440
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/sub64.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ static sub64_one_command one_arg_structs[] =
{
{"--help", help_menu},
{"--version", version_menu},
{"--github", github_menu}
{"--github", github_menu},
{"--docs", docs_menu}
};

/*
Expand All @@ -42,8 +43,8 @@ static sub64_two_command two_arg_structs[] =
};
*/

char *two_arg_commands[] = {"--encrypt", "--decrypt", "--generate-key"};
char *one_arg_commands[] = {"--export-key", "--import-key", "--help", "--website", "--github", "--version", "--config"};
char *two_arg_commands[] = {"--encrypt", "--decrypt", "--generate-key", "--import-key"};
char *one_arg_commands[] = {"--export-key", "--help", "--github", "--version", "--docs"};

int main(int argc, char *argv[])
{
Expand Down
1 change: 1 addition & 0 deletions src/menus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ set(SOURCES
help_menu.c
version_menu.c
github_menu.c
docs_menu.c
)

add_library(sub64_menus STATIC ${SOURCES})
24 changes: 24 additions & 0 deletions src/menus/docs_menu.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @file docs_menu.c
*
* @brief This file is used to show docs URL.
*
* @author Mehmet Mert Gunduz
*
* @date 17/11/2023
*/

#include "sub64_menus.h"

/**
* @brief This function is used to show docs URL
*/
void docs_menu()
{
fprintf(stdout, "<https://mertgunduz.github.io/sub64/>\n\n");

fprintf(stdout, "docs and all code structure\n");
fprintf(stdout, "---------------------------\n");
fprintf(stdout, "you can find functions, code pages, structs and all code related information.\n");
fprintf(stdout, "also before downloading you can check the general guidelines.\n");
}
1 change: 1 addition & 0 deletions src/menus/sub64_menus.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
void help_menu();
void version_menu();
void github_menu();
void docs_menu();

#endif /* SUB64_MENUS_H */

0 comments on commit 8faf440

Please sign in to comment.