vcspull fmt - vcspull.cli.fmt¶
Format vcspull configuration files.
- vcspull.cli.fmt.create_fmt_subparser(parser)[source]¶
Create
vcspull fmtargument subparser.- Return type:
None
- Parameters:
parser (argparse.ArgumentParser)
- vcspull.cli.fmt.normalize_repo_config(repo_data)[source]¶
Normalize repository configuration to verbose format.
- vcspull.cli.fmt.format_single_config(config_file_path, write, *, merge_roots)[source]¶
Format a single vcspull configuration file.
- Return type:
- Parameters:
config_file_path (pathlib.Path) – Path to config file
write (bool) – Whether to write changes back to file
merge_roots (bool) – Merge duplicate workspace roots when True (default behavior)
- Returns:
True if formatting was successful, False otherwise
- Return type: