1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-22 04:43:00 +00:00
kiwi-scp/kiwi_scp/commands/cmd_init.py

21 lines
379 B
Python

import click
from ..config import Config
@click.command(
"init",
short_help="Initializes a repo."
)
@click.argument(
"path",
required=False,
type=click.Path(resolve_path=True)
)
@click.pass_context
def cmd(ctx, path):
"""Initializes a repository."""
kiwi: Config = ctx.obj["cfg"]
click.echo("Hello init")
click.echo(kiwi.kiwi_yml)
pass