Skip to content

Commit 73e3df0

Browse files
committed
refactor(cli[utils]): Remove ConfigPath
1 parent 6a2a956 commit 73e3df0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/tmuxp/cli/utils.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,6 @@ def func(value):
9090
return func
9191

9292

93-
class ConfigPath:
94-
def __init__(
95-
self, config_dir: t.Optional[t.Union[t.Callable, str]] = None, *args, **kwargs
96-
) -> None:
97-
super().__init__(*args, **kwargs)
98-
self.config_dir = config_dir
99-
100-
def convert(
101-
self, value: str, param: t.Any, ctx: t.Any
102-
) -> t.Optional[t.Union[str, pathlib.Path]]:
103-
config_dir = self.config_dir() if callable(self.config_dir) else self.config_dir
104-
105-
return scan_config(value, config_dir=config_dir)
106-
107-
10893
def scan_config_argument(ctx, param, value, config_dir=None):
10994
"""Validate / translate config name/path values for click config arg.
11095

0 commit comments

Comments
 (0)