The CAmp Generator Tool
C code generator for Asynchronous management protocols.
usage: camp [-h] [--log-level {debug,info,warning,error}] [-o OUT] [-s]
[--only-sql] [--only-ch]
admfile
Positional Arguments
- admfile
JSON file to use for file generation
Named Arguments
- --log-level
Possible choices: debug, info, warning, error
The minimum log severity.
Default:
'info'
- -o, --out
The output directory
Default:
'./'
- -s, --scrape
Previously generated H and C file to be scraped
Default:
False
- --only-sql
Set this flag to only produce the SQL files
Default:
False
- --only-ch
Set this flag to only produce the .c and .h files
Default:
False
Environment Variables
The following environment variables control how the tool searches for and loads ADM files.
- ADM_PATH
This is the highest priority search path. All files in the directory named by this variable following the pattern
*.json
are loaded as ADMs.- XDG_DATA_HOME, XDG_DATA_DIRS
These directories are used in accordance with the XDG Base Directory Specification with the suffix path
/ace/adms
. All files in the search subdirectories following the pattern*.json
are loaded as ADMs.
Examples
The XDG-default local search paths for ADM files would be the priority ordering of
$ADM_PATH
$HOME/.local/share/ace/adms
/usr/local/share/ace/adms
/usr/share/ace/adms