2021-10-20 06:31:36 +00:00
|
|
|
import click
|
|
|
|
|
2021-10-20 08:54:41 +00:00
|
|
|
from .cli import KiwiCTX, pass_kiwi_ctx
|
2021-10-20 06:31:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
@click.command(
|
|
|
|
"init",
|
2021-10-20 08:54:41 +00:00
|
|
|
short_help="Initializes kiwi-scp"
|
2021-10-20 06:31:36 +00:00
|
|
|
)
|
|
|
|
@click.argument(
|
|
|
|
"path",
|
|
|
|
required=False,
|
|
|
|
type=click.Path(resolve_path=True)
|
|
|
|
)
|
2021-10-20 08:54:41 +00:00
|
|
|
@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}")
|
2021-10-20 06:31:36 +00:00
|
|
|
pass
|