We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current CLI is not modular, we should create a main cli using click.
something like this :
import click from importlib.metadata import version @click.group(context_settings={"help_option_names": ["-h", "--help"]}) @click.version_option(version("stimulus-py"), "-V", "--version") def app(): """Stimulus command line interface""" pass # Import and register subcommands from .shuffle_csv import shuffle_csv from .transform_csv import transform_csv from .split_csv import split_csv from .check_model import check_model from .tuning import tuning from .split_split import split_split from .split_transforms import split_transforms app.add_command(shuffle_csv, name="shuffle-csv") app.add_command(transform_csv, name="transform-csv") app.add_command(split_csv, name="split-csv") app.add_command(check_model, name="check-model") app.add_command(tuning, name="tuning") app.add_command(split_split, name="split-split") app.add_command(split_transforms, name="split-transforms")
and then we could update existing cli modules to use click commands instead of standalone scripts, i.e. :
import click @click.command() @click.argument("input-file") @click.option("--output", "-o", required=True) def shuffle_csv(input_file, output): """Shuffle CSV file contents""" # ... existing implementation ...
The text was updated successfully, but these errors were encountered:
mathysgrapotte
No branches or pull requests
Is your change request related to a problem? Please describe.
current CLI is not modular, we should create a main cli using click.
Describe the solution you'd like
something like this :
and then we could update existing cli modules to use click commands instead of standalone scripts, i.e. :
The text was updated successfully, but these errors were encountered: