patterns header file
More...
Go to the source code of this file.
patterns header file
- Author
- ZouariOmar (zouar.nosp@m.ioma.nosp@m.r20@g.nosp@m.mail.nosp@m..com)
- Version
- 0.1
- Date
- 2024-10-19
- Copyright
- Copyright (c) 2024
patterns.h
◆ CRUN_AUTHOR
| #define CRUN_AUTHOR "ZouariOmar" |
◆ CRUN_BANNER
Value:printf("%s\t\t\t\t=================== Crun Project ===================\n\t\t\t\t================== " \
#define bleu
Definition color.h:23
#define def
Definition color.h:25
#define CRUN_REPOSITORY
Definition patterns.h:18
#define CRUN_AUTHOR
Definition patterns.h:17
◆ CRUN_HEADER
| #define CRUN_HEADER system("echo \"" green "$(figlet -w $(tput cols) ' Crun - " CRUN_VERSION "')\"" def) |
◆ CRUN_REPOSITORY
| #define CRUN_REPOSITORY "https://github.com/zouari-oss" |
◆ CRUN_VERSION
| #define CRUN_VERSION "v1.4.0-3" |
◆ HELP_MSG
Value:printf("%scrun usage:%s\n" \
" crun Run interactive template selection flow\n" \
" crun --help | -h Show this help message\n" \
" crun --update Refresh local stacks metadata (crun_stacks.json)\n\n" \
"%sNotes:%s\n" \
" - Templates are cached under ~/.local/share/crun/ (Linux).\n" \
" - Audit logs are written to ~/.local/share/crun/audit.log.\n", \
#define yellow
Definition color.h:22
◆ INSTALLATION_COMPLETE_MSG
| #define INSTALLATION_COMPLETE_MSG printf("%sInstallation Complete!\nHAPPY CODING :)\n%s", green, def) |
◆ PROJECT_MENU
| #define PROJECT_MENU |
( |
| fileds | ) |
|
Value:printf("%s\t\t------------------------------------------------------------------------------------------\n" \
"%s\t\tStacks:\n" \
"%s%s" \
"\t\t\t[0] Exit\n" \
"%s\t\tVisit https://github.com/zouari-oss/crun-cli for more info\n" \
"%s\t\t------------------------------------------------------------------------------------------\n" \
"...%s", \
#define red
Definition color.h:20
◆ PROJECT_MENU_FIELD
| #define PROJECT_MENU_FIELD |
( |
| buff, |
|
|
| i, |
|
|
| field ) |
Value:sprintf(buff, "\t\t\t[%d] %s\n", i, field)
◆ PROJECT_MENU_FIELD_LENGTH
| #define PROJECT_MENU_FIELD_LENGTH |
( |
| i, |
|
|
| field ) |
Value:snprintf(NULL, 0, "\t\t\t[%d] %s\n", i, field)
◆ VERSION_MSG
Value:printf("%scrun %s\n" \
"Copyright (C) 2026 zouari-oss, Inc.%s\n", \
#define CRUN_VERSION
Definition patterns.h:16