pestifer.subcommands.config_default module

The config-default subcommand. Echoes all or part of a configuration script with default values, depending on the directives entry point.

class pestifer.subcommands.config_default.ConfigDefaultSubcommand(name: str = 'config-default', aliases: list = <factory>, log_file: str = 'pestifer_diagnostics.log', short_help: str = 'show default configuration options', long_help: str = 'Display default values for all available configuration options.', func_returns_type: type = <class 'bool'>, parser: argparse.ArgumentParser = None)[source]

Bases: Subcommand

add_subparser(subparsers)[source]

Adds the subcommand parser to the given subparsers. Subclasses declare arguments here, after a super().add_subparser() call.

static func(args: Namespace, **kwargs)[source]

the function that executes the subcommand. Subclasses must implement this method.

long_help: str = 'Display default values for all available configuration options.'

description

name: str = 'config-default'

subcommand name

short_help: str = 'show default configuration options'

help string