Print error that does not result in an exit (Red)
Parameters: | message (str) – Message to print to user |
---|
Common message prompting for gathering input form the end user.
Parameters: | message (str) – Message to print to user |
---|
Return a specific context variable value.
Parameters: | name (str) – Context variable name |
---|---|
Returns: | str or None – None if name not found in var list |
Returns the current context variables at time of call.
Retutns: | dict |
---|
Returns a hook call result, else returns false if the module path is not in the hook call list.
Parameters: | module_path (str) – The python dotted path to the module |
---|---|
Returns: | Call result |
Return the project root, which is the current working directory plus the project name.
Returns: | str |
---|
Use the sh library to return the current working directory using the unix command pwd.
Returns: | str |
---|
Print message information to user (Blue)
Parameters: | message (str) – Message to print to user |
---|
** Optional Key Word Arguments **
Parameters: | color – Clint color function to use |
---|---|
Type: | function – default blue |
Saves a hook call to state
Parameters: |
|
---|---|
Returns: | list – The call list or tuples |
Set the project name to the state.
Parameters: | name (str) – The project name from facio.config.CommandLineInterface |
---|
Print a success message (Green)
Parameters: | message (str) – Message to print to user |
---|
Update the context varaibles dict with new values.
** Usage: **
from facio.state import state
dictionary = {
'bar': 'baz',
'fib': 'fab',
}
state.update_context_variables(dictionary)
Parameters: | dictionary (dict) – Dictionary of new key values |
---|
Print a warning message (Yellow)
Parameters: | message (str) – Message to print to user |
---|