refactor(version): separate version and release commands
`markitect version` now prints a clean version string (Unix style), with -v for commit/branch/dirty. `markitect release` shows detailed development status: commits since tag, local changes, upstream divergence. No overlap between the two commands. Replaces get_version_info()/get_release_info() with get_version() and get_release_status(). Drops yaml output format from release (json + text sufficient). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -184,15 +184,12 @@ class CleanDocumentManager:
|
||||
|
||||
def _get_version_info(self) -> dict:
|
||||
"""Get repository name and version information."""
|
||||
from .__version__ import get_version_info
|
||||
from .__version__ import get_version
|
||||
|
||||
version_info = get_version_info()
|
||||
|
||||
# Transform to the format expected by the editor
|
||||
return {
|
||||
'repo_name': 'Markitect',
|
||||
'version': version_info['full_version'],
|
||||
'git_info': '' # Already included in full_version
|
||||
'version': get_version(),
|
||||
'git_info': '',
|
||||
}
|
||||
|
||||
def _get_template_css(self, template: str = None, image_max_width: str = '12cm', image_max_height: str = '20cm') -> str:
|
||||
|
||||
Reference in New Issue
Block a user