mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-22 04:43:00 +00:00
20 lines
389 B
Python
20 lines
389 B
Python
import click
|
|
|
|
from .cli import KiwiCTX, pass_kiwi_ctx
|
|
|
|
|
|
@click.command(
|
|
"init",
|
|
short_help="Initializes kiwi-scp"
|
|
)
|
|
@click.argument(
|
|
"path",
|
|
required=False,
|
|
type=click.Path(resolve_path=True)
|
|
)
|
|
@pass_kiwi_ctx
|
|
def cmd(ctx: KiwiCTX, path):
|
|
"""Initialize or reconfigure a kiwi-scp instance"""
|
|
|
|
click.echo(f"Hello init, kiwi version {ctx.config.version}")
|
|
pass
|