From aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 24 May 2026 10:23:38 +0000 Subject: c rewrite --- src/help.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/help.c (limited to 'src/help.c') diff --git a/src/help.c b/src/help.c new file mode 100644 index 0000000..0c0325d --- /dev/null +++ b/src/help.c @@ -0,0 +1,36 @@ +#include +#include + +#include "help.h" +#include "vars.h" + +void help() { + printf("%s , \n", bold_magenta); + printf("%s / \\ \n", bold_magenta); + printf("%s / \\ \n", bold_magenta); + printf("%s __-' '-__ \n", bold_magenta); + printf("%s ''--__ __--'' %s\n", bold_magenta, bold_yellow); + printf(" %s_--%s\\ /%s--_ \n", bold_yellow, bold_magenta, bold_yellow); + printf(" %s_--' %s\\ /%s '--_ \n", bold_yellow, bold_magenta, bold_yellow); + printf(" %s'-__ %s'%s __-'\n", bold_yellow, bold_magenta, bold_yellow); + printf(" %s'-__ __-' \n", bold_yellow); + printf(" %s'-_-' %s\n", bold_yellow, color_reset); + printf("\n"); + printf(" pkgit\n"); + printf(" %s%s- package it! -%s\n", italic, gray, color_reset); + printf(" %sv%s%s\n", magenta, version, color_reset); + printf("\n"); + printf("%ssubcommands%s:\n", red, color_reset); + printf("%s...... %sa%s, %sadd %s[url, file] %s# add a repo/repopkg\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s...... %sb%s, %sbuild %s[path] %s# build a package\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s...... %si%s, %sinstall %s[pkgs, urls] %s# install a package/repo\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s...... %sr%s, %sremove %s[pkgs] %s# remove an installed package\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s...... %sl%s, %slist %s# list installed packages\n", color_reset, green, color_reset, yellow, gray); + printf("%s...... %su%s, %supdate %s# update all installed packages\n", color_reset, green, color_reset, yellow, gray); + printf("\n"); + printf("%sflags%s:\n", red, color_reset); + printf("%s...... %s-h%s, %s--help %s# display this help message\n", color_reset, green, color_reset, yellow, gray); + printf("%s...... %s-v%s, %s--version %s# display version number\n", color_reset, green, color_reset, yellow, gray); + printf("%s...... %s-c%s, %s--check %s# run package checks\n", color_reset, green, color_reset, yellow, gray); +} + -- cgit v1.2.3