Skip to content

Commit

Permalink
default command behavior is help
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-shemer committed Oct 18, 2021
1 parent a34f979 commit 1643197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "chenv"
version = "0.4.0"
version = "0.4.1"
description = "modern local environment management"
authors = ["Jonathan Shemer <[email protected]>"]
license = "MIT"
Expand Down
6 changes: 1 addition & 5 deletions src/chenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@
settings.mount()


@click.group(invoke_without_command=True)
@click.group()
@click.pass_context
@click.version_option(version=__version__)
def cli(ctx: Context) -> None:
"""chenv. modern local environment management."""
click.secho("chenv. modern local environment management", fg=Color.GREEN.value)
if ctx.invoked_subcommand is None:
import chenv.subcommands

ctx.invoke(chenv.subcommands.local.collect)


@cli.resultcallback()
Expand Down

0 comments on commit 1643197

Please sign in to comment.