Everest CLI output library
Go to file
2024-01-24 08:56:50 -05:00
src clarify copyright 2024-01-24 08:56:50 -05:00
config.mk init 2024-01-24 08:00:40 -05:00
LICENSE clarify copyright 2024-01-24 08:56:50 -05:00
Makefile init 2024-01-24 08:00:40 -05:00
README clarify copyright 2024-01-24 08:56:50 -05:00

+ 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.