Version File Generator

version_file_generator.GenerateVersionFileFromVersion(version: version.Version, templateFilePath: str, versionFilePath: str) → error_code.ErrorCode

Generates a version file from a version object.

Parameters:
  • version (Version) – An instance of the Version class, which is an object representation of the version tag string.
  • templateFilePath (str) – Path to the template file for a version file.
  • versionFilePath (str) – The path to the version source file which is to be generaated.
Returns:

An ErrorCode object telling what the outcome of calling the function was.

version_file_generator.HandleCommand(argv: list, argc: int) → error_code.ErrorCode

Handle a command given to this module

Parameters:
  • argv (list) – The given arguments.
  • argc (int) – The count of given arguments.
Returns:

An ErrorCode object telling what the outcome of calling the function was.