hermes.cli

This module provides the main entry point for the HERMES command line application.

Module Contents

Classes

WorkflowCommand

Custom multi-command that implements

Functions

log_header(header[, summary])

main(→ None)

HERMES

hermes.cli.log_header(header, summary=None)
class hermes.cli.WorkflowCommand(*args, **kwargs)

Bases: click.Group

Custom multi-command that implements

  • sub-commands in a fixed order,

  • automatic call of sub-commands, and

  • filtering of commands to be executed.

add_command(cmd: click.Command, name: Optional[str] = None) None

Overridden to ensure the order of commands is retained.

list_commands(ctx: click.Context) List[str]

Overridden to return commands in fixed order.

invoke(ctx: click.Context) Any

Invoke all sub-commands in a given order.

If there is a flag in ctx.params with the name of a sub-command that evaluates to False, the command is not invoked.

Parameters

ctx – Context for the command.

hermes.cli.main(ctx: click.Context, *args, **kwargs) None

HERMES

This command runs the HERMES workflow or parts of it.