Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,5 @@ __marimo__/

*~
.venv-donna
# .donna/session/ commented to easier navigate artifacts
# .donna/session/ commented to easier navigate artifacts
.donna/tmp
2 changes: 1 addition & 1 deletion changes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

No changes.
- gh-62 Added `donna version` command that prints the version of the tool.
1 change: 1 addition & 0 deletions donna/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from donna.cli.commands import artifacts # noqa: F401
from donna.cli.commands import journal # noqa: F401
from donna.cli.commands import sessions # noqa: F401
from donna.cli.commands import version # noqa: F401
from donna.cli.commands import workspaces # noqa: F401

app()
10 changes: 10 additions & 0 deletions donna/cli/commands/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import importlib.metadata

import typer

from donna.cli.application import app


@app.command(help="Print the current Donna package version.")
def version() -> None:
typer.echo(importlib.metadata.version("donna"))