taken-cli 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {taken_cli-0.2.0 → taken_cli-0.2.1}/PKG-INFO +1 -1
  2. {taken_cli-0.2.0 → taken_cli-0.2.1}/pyproject.toml +1 -1
  3. {taken_cli-0.2.0 → taken_cli-0.2.1}/pyproject.toml.orig +1 -1
  4. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/main.py +24 -0
  5. {taken_cli-0.2.0 → taken_cli-0.2.1}/README.md +0 -0
  6. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/__init__.py +0 -0
  7. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/__init__.py +0 -0
  8. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/add.py +0 -0
  9. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/git.py +0 -0
  10. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/init.py +0 -0
  11. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/install.py +0 -0
  12. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/list.py +0 -0
  13. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/remove.py +0 -0
  14. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/save.py +0 -0
  15. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/update.py +0 -0
  16. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/use.py +0 -0
  17. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/__init__.py +0 -0
  18. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/config.py +0 -0
  19. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/editor.py +0 -0
  20. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/git.py +0 -0
  21. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/github.py +0 -0
  22. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/hashing.py +0 -0
  23. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/mirror.py +0 -0
  24. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/paths.py +0 -0
  25. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/project.py +0 -0
  26. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/registry.py +0 -0
  27. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/skills.py +0 -0
  28. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/__init__.py +0 -0
  29. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/config.py +0 -0
  30. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/project.py +0 -0
  31. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/registry.py +0 -0
  32. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/utils/__init__.py +0 -0
  33. {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/utils/console.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: taken-cli
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Personal dotfile-style CLI for managing AI agent skills
5
5
  Author: Pradyoth
6
6
  Author-email: Pradyoth <pradyoth.dev@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "taken-cli"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Personal dotfile-style CLI for managing AI agent skills"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "taken-cli"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Personal dotfile-style CLI for managing AI agent skills"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -1,3 +1,5 @@
1
+ from importlib.metadata import version as package_version
2
+
1
3
  import typer
2
4
 
3
5
  from taken.commands.add import add
@@ -9,6 +11,7 @@ from taken.commands.remove import remove
9
11
  from taken.commands.save import save
10
12
  from taken.commands.update import update
11
13
  from taken.commands.use import use
14
+ from taken.utils.console import console
12
15
 
13
16
  app = typer.Typer(
14
17
  name="taken",
@@ -17,6 +20,27 @@ app = typer.Typer(
17
20
  rich_markup_mode="rich",
18
21
  )
19
22
 
23
+
24
+ def _version_callback(value: bool) -> None:
25
+ if value:
26
+ console.print(f"taken {package_version('taken-cli')}")
27
+ raise typer.Exit()
28
+
29
+
30
+ @app.callback()
31
+ def _root(
32
+ version: bool = typer.Option(
33
+ False,
34
+ "--version",
35
+ "-V",
36
+ help="Show the installed taken version and exit.",
37
+ callback=_version_callback,
38
+ is_eager=True,
39
+ ),
40
+ ) -> None:
41
+ """A very particular set of skills, managed."""
42
+
43
+
20
44
  app.command("init")(init)
21
45
  app.command("add")(add)
22
46
  app.command("install")(install)
File without changes