libevcli/README
2024-01-24 08:00:40 -05:00

42 lines
879 B
Plaintext

+ libevcli
A library unifying CLI output across Everest programs
+ Usage
#include <evcli.h>
int
main()
{
infolog("Info message");
warnlog("Warning message");
errlog("Error message");
successlog("Success message");
}
(user)$ gcc prog.c -levcli -o prog
No manpage is supplied, this library should be incredibly straightforward to use.
+ Caveats
None of the functions here can output variables. If you need to output variables:
#include <stdio.h>
int
main()
{
printf(COL_BLUE "[i]" COL_RESET " %s\n", VAR);
printf(COL_YELLOW "[!]" COL_RESET " %s\n", VAR);
printf(COL_RED "[x]" COL_RESET " %s\n", VAR);
printf(COL_GREEN "[%lc]" COL_RESET "%s\n", check, VAR);
}
+ Installation
Run 'make' to build the static library. Run 'make install' to install the static library and header.
Run 'make clean' to remove all built files from the source tree.