init
This commit is contained in:
41
README
Normal file
41
README
Normal file
@@ -0,0 +1,41 @@
|
||||
+ 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.
|
||||
Reference in New Issue
Block a user