Skip to content

Commit

Permalink
refactor: Default config args
Browse files Browse the repository at this point in the history
There is an upcomming concept that will take a simplified approach to
default project config. Refactoring these switches in advance
  • Loading branch information
techman83 committed Mar 13, 2024
1 parent ea21f0e commit 9447296
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/cally/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ def get_commands(package_name: str) -> List:

@click.group()
@click.option(
'--core-config',
type=click.Path(path_type=Path),
default=Path(Path.home(), '.config', 'cally.yaml'),
envvar='CALLY_CORE_CONFIG',
help='Path to the core config file',
)
@click.option(
'--project-config',
'--config',
type=click.Path(path_type=Path),
default=Path(Path.cwd(), '.cally.yaml'),
envvar='CALLY_PROJECT_CONFIG',
Expand All @@ -48,8 +41,7 @@ def get_commands(package_name: str) -> List:
@click.pass_context
def cally(
ctx: click.Context, # noqa: ARG001
core_config: click.Path, # noqa: ARG001
project_config: click.Path, # noqa: ARG001
config: click.Path, # noqa: ARG001
) -> None:
"""
Top level click command group for Cally
Expand Down

0 comments on commit 9447296

Please sign in to comment.