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.
- {taken_cli-0.2.0 → taken_cli-0.2.1}/PKG-INFO +1 -1
- {taken_cli-0.2.0 → taken_cli-0.2.1}/pyproject.toml +1 -1
- {taken_cli-0.2.0 → taken_cli-0.2.1}/pyproject.toml.orig +1 -1
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/main.py +24 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/README.md +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/__init__.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/__init__.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/add.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/git.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/init.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/install.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/list.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/remove.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/save.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/update.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/commands/use.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/__init__.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/config.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/editor.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/git.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/github.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/hashing.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/mirror.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/paths.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/project.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/registry.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/core/skills.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/__init__.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/config.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/project.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/models/registry.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/utils/__init__.py +0 -0
- {taken_cli-0.2.0 → taken_cli-0.2.1}/src/taken/utils/console.py +0 -0
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|