fora.main
Provides the top-level logic of fora such as the CLI interface and main script dispatching.
class main.ArgumentParserError
main.ArgumentParserError
Error class for argument parsing errors.
class main.ThrowingArgumentParser
main.ThrowingArgumentParser
An argument parser that throws when invalid argument types are passed.
def ThrowingArgumentParser.error()
ThrowingArgumentParser.error()
Raises an exception on error.
class main.ActionImmediateFunction
main.ActionImmediateFunction
An action that calls a function immediately when the argument is encountered.
Functions
def main.main_run()
main.main_run()
Main method used to run a script on an inventory.
Parameters
args: The parsed arguments
def main.show_inventory()
main.show_inventory()
Display a summary of the given inventory.
Parameters
inventory: The inventory argument
def main.main()
main.main()
The main program entry point. This will parse arguments, load inventory and task definitions and run the given user script. Defaults to sys.argv[1:] if argv is None.
Last updated