bartender.__main__#
Classes#
Format help message for subcommands. |
Functions#
|
Serve the web servce. |
|
Runs arq worker to run queued jobs. |
|
Build an argument parser. |
|
Add generate-token subcommand to parser. |
|
Add the 'link' subcommand to the given subparsers. |
|
Entrypoint of the application. |
Module Contents#
- bartender.__main__.perform(config: pathlib.Path, destination_names: list[str] | None = None) None#
Runs arq worker to run queued jobs.
Like a bartender performing something entertaining, the i-vresse bartender performs by running queued jobs.
- Parameters:
config (pathlib.Path) – Path to config file.
destination_names (Optional[list[str]]) – Name of destinations to run workers for. Each destination must have scheduler.type:arq. By default runs workers for all destinations with scheduler.type:arq.
- Raises:
ValueError – When no valid destination is found in config file.
- Return type:
None
- bartender.__main__.build_parser() argparse.ArgumentParser#
Build an argument parser.
- Returns:
parser
- Return type:
- class bartender.__main__.Formatter(prog, indent_increment=2, max_help_position=24, width=None)#
Bases:
argparse.RawDescriptionHelpFormatter,argparse.ArgumentDefaultsHelpFormatterFormat help message for subcommands.
- bartender.__main__.add_generate_token_subcommand(subparsers: Any) None#
Add generate-token subcommand to parser.
- Parameters:
subparsers (Any) – Subparsers to add generate-token subcommand to.
- Return type:
None