Skip to content

create

Module for creating a new config file.

Functions

create_configuration

create_configuration(
    destination: str, prompt: bool
) -> TOMLDocument

Create a new configuration as a TOMLDocument.

Parameters:

destination

stdout or a path to a new or existing file.

TYPE: str

prompt

True if the user should be prompted for input.

TYPE: bool

Returns:

TOMLDocument

The TOMLDocument structure with the updated configuration.

get_defaults_from_dest

get_defaults_from_dest(
    destination: str,
) -> Tuple[dict, TOMLDocument]

Get the default configuration and the configuration from the destination.