cli¶
- cli.PORT = 8080¶
A CLI for developing and deploying an app deeply integrated with this repository’s structure. Written to be python version agnostic.
- cli.destroy_dev_command()[source]¶
- Returns:
Command to destroy dev container and image.
- Return type:
str
- cli.get_illegal_mode_command()[source]¶
- Returns:
Command to report that the mode given is illegal.
- Return type:
str
- cli.get_info()[source]¶
Parses command line call.
- Returns:
Mode and arguments.
- Return type:
tuple[str]
- cli.line(text, sep=' ')[source]¶
Convenience function for formatting a given block of text as series of commands.
- Parameters:
text (text) – Block of text.
sep (str, optional) – Line separator. Default: ‘ ‘.
- Returns:
Formatted command.
- Return type:
str
- cli.main()[source]¶
Print different commands to stdout depending on mode provided to command.
- Return type:
None
- cli.push_command()[source]¶
- Returns:
Command to push prod docker image to dockerhub.
- Return type:
str
- cli.resolve(commands)[source]¶
Convenience function for creating single commmand from given commands and resolving ‘{…}’ substrings.
- Parameters:
commands (list[str]) – List of commands.
- Returns:
Resolved command.
- Return type:
str
- cli.version_variable()[source]¶
- Returns:
Command to set version variable from pyproject.toml.
- Return type:
str
- cli.x_tools(command, args=[])[source]¶
Creates a x_tools command string.
- Parameters:
command (str) – x_tools command
args (list, optional) – List of arguments to be passed to the command. Default: []
- Returns:
x_tools command.
- Return type:
str
- cli.x_tools_command(command, args=[])[source]¶
Runs a x_tools command.
- Parameters:
command (str) – x_tools command
args (list, optional) – List of arguments to be passed to the command. Default: []
- Returns:
x_tools command.
- Return type:
str