main_config#

CLI implementation for conda config.

Allows for programmatically interacting with conda's configuration files (e.g., ~/.condarc).

Functions#

configure_parser(→ argparse.ArgumentParser)

execute(→ int)

format_dict(d)

parameter_description_builder(name)

describe_all_parameters()

print_config_item(key, value)

_get_key(→ None)

_set_key(→ None)

_remove_item(→ None)

_remove_key(→ None)

_read_rc(→ dict)

_write_rc(→ None)

set_keys(→ None)

execute_config(args, parser)

configure_parser(sub_parsers: argparse._SubParsersAction, **kwargs) argparse.ArgumentParser#
execute(args: argparse.Namespace, parser: argparse.ArgumentParser) int#
format_dict(d)#
parameter_description_builder(name)#
describe_all_parameters()#
print_config_item(key, value)#
_get_key(key: str, config: dict, *, json: dict[str, Any] = {}, warnings: list[str] = []) None#
_set_key(key: str, item: Any, config: dict) None#
_remove_item(key: str, item: Any, config: dict) None#
_remove_key(key: str, config: dict) None#
_read_rc(path: str | os.PathLike | pathlib.Path) dict#
_write_rc(path: str | os.PathLike | pathlib.Path, config: dict) None#
set_keys(*args: tuple[str, Any], path: str | os.PathLike | pathlib.Path) None#
execute_config(args, parser)#