paper_firehose.commands.config_cmd

Config management CLI subcommands.

Functions

get_value(config_path, key)

Get a value from the main config using dot-notation.

set_value(config_path, key, raw_value)

Set a value in the main config using dot-notation.

show(config_path)

Return the main config as formatted YAML.

validate(config_path)

Run full config validation.

paper_firehose.commands.config_cmd.get_value(config_path, key)[source]

Get a value from the main config using dot-notation.

Return type:

Any

Parameters:
paper_firehose.commands.config_cmd.set_value(config_path, key, raw_value)[source]

Set a value in the main config using dot-notation.

Writes the updated config back to disk.

Return type:

None

Parameters:
  • config_path (str)

  • key (str)

  • raw_value (str)

paper_firehose.commands.config_cmd.show(config_path)[source]

Return the main config as formatted YAML.

Return type:

str

Parameters:

config_path (str)

paper_firehose.commands.config_cmd.validate(config_path)[source]

Run full config validation.

Return type:

tuple[bool, list[str]]

Returns:

(is_valid, unknown_keys)

Parameters:

config_path (str)