Below is documentatin for the facio.hooks.Hook class.
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 |
---|
Has a hooks module run.
Parameters: | path (str) – The hooks python module path |
---|---|
Returns: | False if not run else the modules returned data |
Import module to run in before or post hooks.
Parameters: | path (str) – The python path to the module |
---|
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 |
Print a success message (Green)
Parameters: | message (str) – Message to print to user |
---|
Print a warning message (Yellow)
Parameters: | message (str) – Message to print to user |
---|
Returns the default path to python, if virtualenv hooks has been called use that path, else use the current executing python, this should be the systems python in most cases.
Returns: | str – path to python executable |
---|
Gets the install args from the user, for example setup.py install or develop.
Returns: | str – The install type |
---|
Gets the path to python to run setup.py against. Detect if the virtualenv hooks has run, if so the default path to python should come from the path to this virtual environment, else it should be the system default python path.
Returns: | str – The path to python |
---|