crun-cli v1.4.0
C-based project scaffolding CLI
Loading...
Searching...
No Matches
patterns.h File Reference

patterns header file More...

#include "color.h"
Include dependency graph for patterns.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRUN_VERSION   "v1.4.0-3"
#define CRUN_AUTHOR   "ZouariOmar"
#define CRUN_REPOSITORY   "https://github.com/zouari-oss"
#define CRUN_HEADER   system("echo \"" green "$(figlet -w $(tput cols) ' Crun - " CRUN_VERSION "')\"" def)
#define CRUN_BANNER
#define PROJECT_MENU_FIELD_LENGTH(i, field)
#define PROJECT_MENU_FIELD(buff, i, field)
#define PROJECT_MENU(fileds)
#define VERSION_MSG
#define HELP_MSG
#define INSTALLATION_COMPLETE_MSG   printf("%sInstallation Complete!\nHAPPY CODING :)\n%s", green, def)

Detailed Description

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

patterns.h

Macro Definition Documentation

◆ CRUN_AUTHOR

#define CRUN_AUTHOR   "ZouariOmar"

◆ CRUN_BANNER

#define CRUN_BANNER
Value:
printf("%s\t\t\t\t=================== Crun Project ===================\n\t\t\t\t================== " \
"By @" CRUN_AUTHOR " ==================\n\t\t\t\t==== Visit Us In: " CRUN_REPOSITORY " ====%s\n\n", \
#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

#define 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", \
yellow, red, yellow, fileds, red, yellow, def)
#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

#define VERSION_MSG
Value:
printf("%scrun %s\n" \
"Copyright (C) 2026 zouari-oss, Inc.%s\n", \
#define CRUN_VERSION
Definition patterns.h:16