torchcell.database.build_command.BuildCommand

class BuildCommand[source]

Bases: object

A simple command that builds something.

static add_arguments(parser: ArgumentParser) → None[source]

Add the build mode option to parser.

get_parser(prog_name: str) → ArgumentParser[source]

A standalone parser for the command, named prog_name in its usage line.

take_action(parsed_args: Namespace) → int | None[source]

Run the selected build script and stream its output.