lfs wanring clarity
This commit is contained in:
parent
4a71dcf6c2
commit
6a106fe2c4
1224
poetry.lock
generated
1224
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
|
|
@ -3,7 +3,14 @@ This module contains the main group for the ria toolkit oss CLI.
|
|||
"""
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
message="Unable to import Axes3D",
|
||||
category=UserWarning,
|
||||
module="matplotlib",
|
||||
)
|
||||
|
||||
import click
|
||||
|
||||
|
|
@ -25,7 +32,8 @@ def _git_lfs_installed() -> bool:
|
|||
@click.option("-v", "--verbose", is_flag=True, type=bool, help="Increase verbosity, especially useful for debugging.")
|
||||
@click.pass_context
|
||||
def cli(ctx, verbose):
|
||||
if not _git_lfs_installed():
|
||||
lfs_missing = not _git_lfs_installed()
|
||||
if lfs_missing:
|
||||
click.echo(
|
||||
"Warning: git-lfs is not installed. RIA Hub projects require git-lfs to\n"
|
||||
"track large binary files (models, recordings, datasets).\n"
|
||||
|
|
@ -38,6 +46,8 @@ def cli(ctx, verbose):
|
|||
err=True,
|
||||
)
|
||||
if ctx.invoked_subcommand is None:
|
||||
if lfs_missing:
|
||||
click.pause(info="\nPress Enter to continue...", err=True)
|
||||
click.echo(ctx.get_help())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user