dotx 2.0.2__tar.gz → 2.0.3__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.
- {dotx-2.0.2/src/dotx.egg-info → dotx-2.0.3}/PKG-INFO +1 -1
- {dotx-2.0.2 → dotx-2.0.3}/pyproject.toml +1 -1
- dotx-2.0.3/src/dotx/__init__.py +11 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx/cli.py +4 -2
- {dotx-2.0.2 → dotx-2.0.3/src/dotx.egg-info}/PKG-INFO +1 -1
- dotx-2.0.2/src/dotx/__init__.py +0 -8
- {dotx-2.0.2 → dotx-2.0.3}/LICENSE +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/README.md +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/setup.cfg +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx/database.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx/ignore.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx/install.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx/options.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx/plan.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx/uninstall.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx.egg-info/SOURCES.txt +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx.egg-info/dependency_links.txt +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx.egg-info/entry_points.txt +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx.egg-info/requires.txt +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/src/dotx.egg-info/top_level.txt +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_cli.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_cli_database.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_ignore.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_ignore_rules.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_install.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_options.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_plan.py +0 -0
- {dotx-2.0.2 → dotx-2.0.3}/tests/test_uninstall.py +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""dotx - A command-line tool to install a link-farm to your dotfiles."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import version, metadata, PackageNotFoundError
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
__version__ = version("dotx")
|
|
7
|
+
__metadata__ = metadata("dotx")
|
|
8
|
+
__homepage__ = __metadata__.get("Home-page") or "https://github.com/wolf/dotx"
|
|
9
|
+
except PackageNotFoundError:
|
|
10
|
+
__version__ = "unknown"
|
|
11
|
+
__homepage__ = "https://github.com/wolf/dotx"
|
|
@@ -22,7 +22,7 @@ import click
|
|
|
22
22
|
import typer
|
|
23
23
|
from loguru import logger
|
|
24
24
|
|
|
25
|
-
from dotx import __version__
|
|
25
|
+
from dotx import __version__, __homepage__
|
|
26
26
|
from dotx.database import InstallationDB
|
|
27
27
|
from dotx.install import plan_install
|
|
28
28
|
from dotx.options import set_option
|
|
@@ -31,7 +31,9 @@ from dotx.uninstall import plan_uninstall
|
|
|
31
31
|
|
|
32
32
|
# Create the Typer app
|
|
33
33
|
app = typer.Typer(
|
|
34
|
-
help="Manage a link farm: (un)install groups of links from source packages."
|
|
34
|
+
help="Manage a link farm: (un)install groups of links from source packages.",
|
|
35
|
+
no_args_is_help=True,
|
|
36
|
+
epilog=f"dotx version {__version__} | {__homepage__}",
|
|
35
37
|
)
|
|
36
38
|
|
|
37
39
|
|
dotx-2.0.2/src/dotx/__init__.py
DELETED
|
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
|