Skip to content

Commit

Permalink
first CLI attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
JenkeScheen committed Apr 18, 2024
1 parent ed66a2c commit d54be90
Show file tree
Hide file tree
Showing 9 changed files with 992,835 additions and 248 deletions.
Empty file added choppa/cli/__init__.py
Empty file.
4 changes: 4 additions & 0 deletions choppa/cli/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .cli import cli

if __name__ == "__main__":
cli()
20 changes: 20 additions & 0 deletions choppa/cli/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import click


@click.group()
@click.version_option()
def cli():
"Demo of click-app-template-repository"

@cli.command(name="command")
@click.argument(
"example"
)
@click.option(
"-o",
"--option",
help="An example option",
)
def first_command(example, option):
"Command description goes here"
click.echo("Here is some output")
5 changes: 4 additions & 1 deletion choppa/data/toy_data/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@

TOY_FITNESS_DATA_SECTIONED = pkg_resources.resource_filename(
__name__, "toy_fitness_data_03_sectioned.csv"
)
)
TOY_HYLO_DATA = pkg_resources.resource_filename(
__name__, "toy_phylo_fitness_data.json"
)
Loading

0 comments on commit d54be90

Please sign in to comment.