Beispiel #1
0
def main(
    input,
    config_file,
    debug,
):
    """
    Main entry point for testing_oneclick_cli.

    :param input: Something
    :param config_file: Path to the yaml config file.
    :param debug: Debug flag

    :return Something
    """
    if config_file:
        with open(config_file, encoding='utf-8') as f:
            config_contents = yaml.safe_load(f)
        config = Config(**config_contents)
    else:
        config = Config()

    print(input)
    if debug:
        with open('debug.yaml', 'w') as f:
            yaml.dump(config.dict(), f)