Command Line Interface

Complete CLI Reference

This utility wraps around a command, and templates in context to

the latter command’s arguments. The child process will replace the fyoo/python process.

usage: fyoo [-h] [-c CONTEXT] [-f CONTEXT_FORMAT] [-s SET] [-je JINJA_EXTENSION] [-jtf JINJA_TEMPLATE_FOLDER]
            [-jbs JINJA_BLOCK_STRING JINJA_BLOCK_STRING] [-jvs JINJA_VARIABLE_STRING JINJA_VARIABLE_STRING]
            [-jcs JINJA_COMMENT_STRING JINJA_COMMENT_STRING] [-v] [-dr]
            {--} ...

Named Arguments

-c, --context

Pass in a json or yaml string (multi-argument). Can be set a single time by FYOO__CONTEXT.

Default: []

-f, --context-format

Context formatter to use. Can be set by environment variable FYOO__CONTEXT_FORMAT.

Default: “json”

-s, --set

Set a single context variable, i.e. table_name=users.

In addition, set context variables by environment variable FYOO__SET__{var_name}={var_value}.

Context variables will try to use implicit types, defaulting to string types.

-je, --jinja-extension

Add a jinja2 extension to load at runtime.

-jtf, --jinja-template-folder
Optionally, add a location for jinja2 to load templates from the filesystem.

Can be set by environment variable FYOO__JINJA_TEMPLATE_FOLDER.

-jbs, --jinja-block-string
Jinja block start and end strings for blocks. Can be set

by environment variables FYOO__JINJA_BLOCK_STRING__S/E

Default: [‘{%’, ‘%}’]

-jvs, --jinja-variable-string
Jinja block start and end strings for variables. Can be set

by environment variables FYOO__JINJA_VARIABLE_STRING__S/E

Default: [‘{{‘, ‘}}’]

-jcs, --jinja-comment-string
Jinja block start and end strings for comments. Can be set

by environment variables FYOO__JINJA_COMMENT_STRING__S/E

Default: [‘{#’, ‘#}’]

-v, --verbose

Show the command before running it.

Default: False

-dr, --dry-run

Do not actually kick off command.

Default: False

Sub-commands:

Execute a subcommand. The subcommand will spawn a child process that

will become a parent (implemented by os.execvp).

fyoo -- [-h] ...
Positional Arguments
command

Enter any number of arguments as a command.