spack.cmd.common package

spack.cmd.common.shell_init_instructions(cmd, equivalent)[source]

Print out instructions for users to initialize shell support.

Parameters:
  • cmd (str) – the command the user tried to run that requires shell support in order to work

  • equivalent (str) – a command they can run instead, without enabling shell support

Submodules

spack.cmd.common.arguments module

spack.cmd.common.arguments.add_common_arguments(parser, list_of_arguments)[source]

Extend a parser with extra arguments

Parameters:
  • parser – parser to be extended

  • list_of_arguments – arguments to be added to the parser

spack.cmd.common.confirmation module

spack.cmd.common.confirmation.confirm_action(specs: List[Spec], participle: str, noun: str)[source]

Display the list of specs to be acted on and ask for confirmation.

Parameters:
  • specs – specs to be removed

  • participle – action expressed as a participle, e.g. “uninstalled”

  • noun – action expressed as a noun, e.g. “uninstallation”

spack.cmd.common.env_utility module

class spack.cmd.common.env_utility.AreDepsInstalledVisitor(context: Context = Context.BUILD)[source]

Bases: object

accept(item)[source]
neighbors(item)[source]
spack.cmd.common.env_utility.emulate_env_utility(cmd_name, context: Context, args)[source]
spack.cmd.common.env_utility.setup_parser(subparser)[source]