Changeset View
Changeset View
Standalone View
Standalone View
swh/vault/cli.py
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | @click.option( | ||||
metavar="CONFIGFILE", | metavar="CONFIGFILE", | ||||
type=click.Path(exists=True, dir_okay=False,), | type=click.Path(exists=True, dir_okay=False,), | ||||
help="Configuration file.", | help="Configuration file.", | ||||
) | ) | ||||
@click.argument("swhid", type=SwhidParamType()) | @click.argument("swhid", type=SwhidParamType()) | ||||
@click.argument("outfile", type=click.File("wb")) | @click.argument("outfile", type=click.File("wb")) | ||||
@click.option( | @click.option( | ||||
"--cooker-type", | "--cooker-type", | ||||
type=click.Choice(["flat", "gitfast"]), | type=click.Choice(["flat", "gitfast", "git_bare"]), | ||||
help="Selects which cooker to use, when there is more than one available " | help="Selects which cooker to use, when there is more than one available " | ||||
"for the given object type.", | "for the given object type.", | ||||
) | ) | ||||
@click.pass_context | @click.pass_context | ||||
def cook( | def cook( | ||||
ctx, | ctx, | ||||
config_file: str, | config_file: str, | ||||
swhid: CoreSWHID, | swhid: CoreSWHID, | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |