llvm_snapshot_builder.cli

llvm_snapshot_builder.cli provides a CLI interface to the llvm_snapshot_builder

Module Contents

Classes

HelpAction

Prints the help message.

Functions

get_action(...)

Parses all arguments set up by build_main_parser() and returns the

build_main_parser(→ argparse.ArgumentParser)

Returns the main parser for command line arguments

main(→ bool)

Main function

Attributes

CMD_BUILD_ALL_PACKAGES

CMD_BUILD_PACKAGES

CMD_CREATE_PACKAGES

CMD_CANCEL_BUILDS

CMD_DELETE_BUILDS

CMD_DELETE_PROJECT

CMD_FORK_PROJECT

CMD_CREATE_PROJECT

CMD_PROJECT_EXISTS

CMD_REGENERATE_REPOS

cmd_action_map

class llvm_snapshot_builder.cli.HelpAction(arg_parser: argparse.ArgumentParser, **kwargs)[source]

Bases: llvm_snapshot_builder.actions.action.CoprAction

Prints the help message.

run() bool[source]

Runs the action.

llvm_snapshot_builder.cli.CMD_BUILD_ALL_PACKAGES = 'build-all-packages'
llvm_snapshot_builder.cli.CMD_BUILD_PACKAGES = 'build-packages'
llvm_snapshot_builder.cli.CMD_CREATE_PACKAGES = 'create-packages'
llvm_snapshot_builder.cli.CMD_CANCEL_BUILDS = 'cancel-builds'
llvm_snapshot_builder.cli.CMD_DELETE_BUILDS = 'delete-builds'
llvm_snapshot_builder.cli.CMD_DELETE_PROJECT = 'delete-project'
llvm_snapshot_builder.cli.CMD_FORK_PROJECT = 'fork-project'
llvm_snapshot_builder.cli.CMD_CREATE_PROJECT = 'create-project'
llvm_snapshot_builder.cli.CMD_PROJECT_EXISTS = 'project-exists'
llvm_snapshot_builder.cli.CMD_REGENERATE_REPOS = 'regenerate-repos'
llvm_snapshot_builder.cli.cmd_action_map
llvm_snapshot_builder.cli.get_action(arg_parser: argparse.ArgumentParser, arguments: list = None) llvm_snapshot_builder.actions.action.CoprAction[source]

Parses all arguments set up by build_main_parser() and returns the action to execute.

Keyword Arguments:
  • use. (arg_parser {argparse.ArgumentParser} -- The argument parser to) –

  • used. (arguments {list} -- The arguments to parse. If None, sys.argv is) –

llvm_snapshot_builder.cli.build_main_parser() argparse.ArgumentParser[source]

Returns the main parser for command line arguments

llvm_snapshot_builder.cli.main(arguments=None) bool[source]

Main function