fastiot.cli.version module¶
- fastiot.cli.version.create_version_file(destination)[source]¶
Creates a file with __version__=…
- Parameters:
destination (
Optional
[str
]) – Destination path (full filename) to put the generated file.
- fastiot.cli.version.get_version(complete=False, only_major=False, minor=False)[source]¶
Returns the current version depending on the git commits and tags or version file
- Parameters:
complete – Set to true to get the full version including dev, e.g. 1.4+dev10
only_major – Set to true to get only the major version, e.g. 1.x
minor – Set to true to only get the minor version, e.g. .4
- Return type:
str
- Returns:
String with version