Bash API
Generated from public function usage comments in clyops.sh.
info
Usage: info <message...>. Log an informational message to stderr.
warn
Usage: warn <message...>. Log a warning to stderr.
error
Usage: error <message...>. Log an error to stderr.
success
Usage: success <message...>. Log a success message to stderr.
die
Usage: die <exit_code>
clyops_name
Usage: clyops_name
clyops_root
Usage: clyops_root
clyops_description
Usage: clyops_description
clyops_epilog
Usage: clyops_epilog
clyops_command
Usage: clyops_command "
clyops_effects
Usage: clyops_effects
clyops_stdin
Usage: clyops_stdin
clyops_stdout
Usage: clyops_stdout
clyops_exclusive
Usage: clyops_exclusive
clyops_requires
Usage: clyops_requires
clyops_one_of
Usage: clyops_one_of <long...>. Require at least one listed option.
clyops_config
Usage: clyops_config
clyops_require_command
Usage: clyops_require_command
clyops_path_search
Usage: clyops_path_search
clyops_opt
Usage: clyops_opt
clyops_opt_array
Usage: clyops_opt_array
clyops_arg
Usage: clyops_arg
clyops_arg_variadic
Usage: clyops_arg_variadic
clyops_parse
Parse without exiting. Returns 0 when values were assigned; otherwise _CLYOPS_HELP is set (help requested) or _CLYOPS_ERROR holds the message.
clyops_run
Parse like a CLI: handles --help, --help-json-schema and --bash-completion, prints errors and exits on failure, otherwise assigns the variables.
clyops_source
Print where an option's value came from: cli, config, env, default or unset.
clyops_is_set
Usage: clyops_is_set
clyops_is_explicitly_set
Usage: clyops_is_explicitly_set
clyops_values_json
Resolved values as JSON (spec section 10).
clyops_usage
Help text (spec section 7), for the selected command.
clyops_json_schema
JSON description of the CLI (spec section 8).
clyops_completion_data
Tab-separated completion records (spec section 9). The arguments are the words typed after the program name; a program with commands follows them.
clyops_completion_script
Print a script that enables completion for this program in bash, zsh or fish (spec section 9): eval "$(prog --completion bash)". Returns 1 for an unknown shell.