Changeset View
Changeset View
Standalone View
Standalone View
swh/fuse/cli.py
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
@click.option( | @click.option( | ||||
"--config-file", | "--config-file", | ||||
"-C", | "-C", | ||||
default=None, | default=None, | ||||
type=click.Path(exists=True, dir_okay=False,), | type=click.Path(exists=True, dir_okay=False,), | ||||
help="YAML configuration file", | help="YAML configuration file", | ||||
) | ) | ||||
@click.option( | @click.option( | ||||
"-f", | "-f/-d", | ||||
"--foreground", | "--foreground/--daemon", | ||||
is_flag=True, | default=False, | ||||
show_default=True, | help="whether to run FUSE attached to the console (foreground) " | ||||
help="Run FUSE system in foreground instead of daemon", | "or daemonized in the background (default: daemon)", | ||||
) | ) | ||||
@click.pass_context | @click.pass_context | ||||
def mount(ctx, swhids, path, config_file, foreground): | def mount(ctx, swhids, path, config_file, foreground): | ||||
"""Mount the Software Heritage archive at PATH | """Mount the Software Heritage archive at PATH | ||||
If specified, objects referenced by the given SWHIDs will be prefetched and used to | If specified, objects referenced by the given SWHIDs will be prefetched and used to | ||||
populate the virtual file system (VFS). Otherwise the VFS will be populated | populate the virtual file system (VFS). Otherwise the VFS will be populated | ||||
on-demand, when accessing its content. | on-demand, when accessing its content. | ||||
Show All 21 Lines |