diff --git a/src/app/sub64.c b/src/app/sub64.c index dc1b345..9c6dfb1 100644 --- a/src/app/sub64.c +++ b/src/app/sub64.c @@ -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} }; /* @@ -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[]) { diff --git a/src/menus/CMakeLists.txt b/src/menus/CMakeLists.txt index ec3a0c9..db944f6 100644 --- a/src/menus/CMakeLists.txt +++ b/src/menus/CMakeLists.txt @@ -2,6 +2,7 @@ set(SOURCES help_menu.c version_menu.c github_menu.c + docs_menu.c ) add_library(sub64_menus STATIC ${SOURCES}) \ No newline at end of file diff --git a/src/menus/docs_menu.c b/src/menus/docs_menu.c new file mode 100644 index 0000000..1342a1d --- /dev/null +++ b/src/menus/docs_menu.c @@ -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, "\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"); +} \ No newline at end of file diff --git a/src/menus/sub64_menus.h b/src/menus/sub64_menus.h index 542f08e..e0162fb 100644 --- a/src/menus/sub64_menus.h +++ b/src/menus/sub64_menus.h @@ -17,5 +17,6 @@ void help_menu(); void version_menu(); void github_menu(); +void docs_menu(); #endif /* SUB64_MENUS_H */ \ No newline at end of file