topmark.presentation.shared.version¶
topmark / presentation / shared / version
Shared helpers for the CLI version command.
VersionHumanReport
dataclass
¶
Representation of version information.
Attributes:
| Name | Type | Description |
|---|---|---|
version_text |
str
|
The effective version string (SemVer or PEP 440). |
version_format |
str
|
The effective format label (e.g. "semver" or "pep440"). |
error |
TopmarkCliVersionConversionError | None
|
Optional conversion error when SemVer conversion was requested and failed. |
verbosity_level |
int
|
Effective verbosity for gating extra details. |
styled |
bool
|
Whether to render the output styled. |
make_version_human_report ¶
Create a VersionHumanReport instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
semver
|
bool
|
Whether to render the version in SemVer format (default: PEP440). |
required |
verbosity_level
|
int
|
Effective verbosity level. |
required |
styled
|
bool
|
Whether to render the output styled. |
required |
Returns:
| Type | Description |
|---|---|
VersionHumanReport
|
The |