From 18e6099230c3bfe23d4faeeae289554f127deb87 Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 19 Oct 2018 13:06:27 +0300 Subject: Add install script and config/verbose help --- src/actionhelper.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/actionhelper.c') diff --git a/src/actionhelper.c b/src/actionhelper.c index 6507e7b..6e76b2b 100644 --- a/src/actionhelper.c +++ b/src/actionhelper.c @@ -398,3 +398,24 @@ void print_HELP_help() { ckhelp("Note:\nRunning ck without arguments will print all the available actions."); report_help(); } + +void print_conf_help(void) { + ckhelp("Set a different ck configuration directory.\n"); + ckhelp("This has to be passed before any action or action argument"); + ckhelp("and after verbose (if set).\n"); + ckhelp("Usage:"); + ckhelp(" ck -c /path/to/conf ..."); + ckhelp(" ck config /path/to/conf ...\n"); + ckhelp("ck will use the database and config file in the path supplied"); + ckhelp("to perform any actions.\n"); + ckhelp("Tip:\nYou can alias `ck -c /path/to/conf` and use the new alias"); + ckhelp("to organise a different set of configurations, or some custom scrpits."); + report_help(); +} + +void print_verbose_help(void) { + ckhelp("WIP\n"); + ckhelp("Currently passing the verbose flag, prints a log of what ck is doing"); + ckhelp("during excecution of an action."); + report_help(); +} -- cgit v1.2.3