dotx 3.3.2__tar.gz → 3.3.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.
Files changed (40) hide show
  1. {dotx-3.3.2/src/dotx.egg-info → dotx-3.3.3}/PKG-INFO +1 -1
  2. {dotx-3.3.2 → dotx-3.3.3}/pyproject.toml +1 -1
  3. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/cli.py +1 -1
  4. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/options.py +8 -7
  5. {dotx-3.3.2 → dotx-3.3.3/src/dotx.egg-info}/PKG-INFO +1 -1
  6. {dotx-3.3.2 → dotx-3.3.3}/LICENSE +0 -0
  7. {dotx-3.3.2 → dotx-3.3.3}/MANIFEST.in +0 -0
  8. {dotx-3.3.2 → dotx-3.3.3}/README.md +0 -0
  9. {dotx-3.3.2 → dotx-3.3.3}/setup.cfg +0 -0
  10. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/__init__.py +0 -0
  11. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/always-create +0 -0
  12. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/commands/__init__.py +0 -0
  13. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/commands/database.py +0 -0
  14. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/commands/install_cmd.py +0 -0
  15. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/commands/path_cmd.py +0 -0
  16. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/commands/progress.py +0 -0
  17. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/commands/uninstall_cmd.py +0 -0
  18. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/database.py +0 -0
  19. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/dotxignore +0 -0
  20. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/hierarchy.py +0 -0
  21. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/ignore.py +0 -0
  22. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/install.py +0 -0
  23. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/installed-schema.sql +0 -0
  24. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/plan.py +0 -0
  25. {dotx-3.3.2 → dotx-3.3.3}/src/dotx/uninstall.py +0 -0
  26. {dotx-3.3.2 → dotx-3.3.3}/src/dotx.egg-info/SOURCES.txt +0 -0
  27. {dotx-3.3.2 → dotx-3.3.3}/src/dotx.egg-info/dependency_links.txt +0 -0
  28. {dotx-3.3.2 → dotx-3.3.3}/src/dotx.egg-info/entry_points.txt +0 -0
  29. {dotx-3.3.2 → dotx-3.3.3}/src/dotx.egg-info/requires.txt +0 -0
  30. {dotx-3.3.2 → dotx-3.3.3}/src/dotx.egg-info/top_level.txt +0 -0
  31. {dotx-3.3.2 → dotx-3.3.3}/tests/test_always_create.py +0 -0
  32. {dotx-3.3.2 → dotx-3.3.3}/tests/test_cli.py +0 -0
  33. {dotx-3.3.2 → dotx-3.3.3}/tests/test_cli_database.py +0 -0
  34. {dotx-3.3.2 → dotx-3.3.3}/tests/test_ignore.py +0 -0
  35. {dotx-3.3.2 → dotx-3.3.3}/tests/test_ignore_rules.py +0 -0
  36. {dotx-3.3.2 → dotx-3.3.3}/tests/test_install.py +0 -0
  37. {dotx-3.3.2 → dotx-3.3.3}/tests/test_options.py +0 -0
  38. {dotx-3.3.2 → dotx-3.3.3}/tests/test_path_which.py +0 -0
  39. {dotx-3.3.2 → dotx-3.3.3}/tests/test_plan.py +0 -0
  40. {dotx-3.3.2 → dotx-3.3.3}/tests/test_uninstall.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dotx
3
- Version: 3.3.2
3
+ Version: 3.3.3
4
4
  Summary: A command-line tool to install a link-farm to your dotfiles
5
5
  Author-email: Wolf <Wolf@zv.cx>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dotx"
3
- version = "3.3.2"
3
+ version = "3.3.3"
4
4
  description = "A command-line tool to install a link-farm to your dotfiles"
5
5
  authors = [
6
6
  { name = "Wolf", email = "Wolf@zv.cx" }
@@ -52,7 +52,7 @@ def configure_logging(debug: bool, verbose: bool, log: Path | None):
52
52
 
53
53
  @app.callback()
54
54
  def main(
55
- ctx: click.Context,
55
+ ctx: typer.Context,
56
56
  debug: Annotated[
57
57
  bool,
58
58
  typer.Option("--debug/--no-debug", help="Enable debug logging"),
@@ -1,16 +1,17 @@
1
1
  """
2
2
  This module provides convenience functions for accessing user-data on the associated context.
3
3
 
4
- Note: typer is built on click, so we use click.Context for type annotations.
4
+ Note: typer is built on click, so we use typer.Context for type annotations.
5
5
  """
6
6
 
7
7
  from pathlib import Path
8
8
  from typing import Any
9
9
 
10
10
  import click
11
+ import typer
11
12
 
12
13
 
13
- def set_option(option: str, value: Any, ctx: click.Context | None = None) -> bool:
14
+ def set_option(option: str, value: Any, ctx: typer.Context | None = None) -> bool:
14
15
  """
15
16
  Set an option value in the Typer context.
16
17
 
@@ -28,7 +29,7 @@ def set_option(option: str, value: Any, ctx: click.Context | None = None) -> boo
28
29
  return False
29
30
 
30
31
 
31
- def get_option(option: str, default_for_option: Any = None, ctx: click.Context | None = None) -> Any:
32
+ def get_option(option: str, default_for_option: Any = None, ctx: typer.Context | None = None) -> Any:
32
33
  """
33
34
  Get an option value from the context.
34
35
 
@@ -44,22 +45,22 @@ def get_option(option: str, default_for_option: Any = None, ctx: click.Context |
44
45
  return default_for_option
45
46
 
46
47
 
47
- def is_verbose_mode(ctx: click.Context | None = None) -> bool:
48
+ def is_verbose_mode(ctx: typer.Context | None = None) -> bool:
48
49
  """Check if verbose mode is enabled."""
49
50
  return get_option("VERBOSE", False, ctx)
50
51
 
51
52
 
52
- def is_debug_mode(ctx: click.Context | None = None) -> bool:
53
+ def is_debug_mode(ctx: typer.Context | None = None) -> bool:
53
54
  """Check if debug mode is enabled."""
54
55
  return get_option("DEBUG", False, ctx)
55
56
 
56
57
 
57
- def is_dry_run(ctx: click.Context | None = None) -> bool:
58
+ def is_dry_run(ctx: typer.Context | None = None) -> bool:
58
59
  """Check if dry-run mode is enabled."""
59
60
  return get_option("DRYRUN", False, ctx)
60
61
 
61
62
 
62
- def is_xdg_mode(ctx: click.Context | None = None) -> bool:
63
+ def is_xdg_mode(ctx: typer.Context | None = None) -> bool:
63
64
  """Check if XDG mode is enabled."""
64
65
  return get_option("XDG", False, ctx)
65
66
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dotx
3
- Version: 3.3.2
3
+ Version: 3.3.3
4
4
  Summary: A command-line tool to install a link-farm to your dotfiles
5
5
  Author-email: Wolf <Wolf@zv.cx>
6
6
  License-Expression: MIT
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