Compare commits
No commits in common. 'feb00df8c5fe90db2ee4628c89aac0546d645297' and '3313298fa289f7c45831e4fd90f963f84d24b4c5' have entirely different histories.
feb00df8c5
...
3313298fa2
9 changed files with 32 additions and 64 deletions
@ -1,6 +0,0 @@ |
|||||||
from . import ( |
|
||||||
load_exercises, |
|
||||||
map_yaml_to_database, |
|
||||||
create_open_workout_database, |
|
||||||
exercise_config |
|
||||||
) |
|
@ -1,27 +0,0 @@ |
|||||||
import click |
|
||||||
|
|
||||||
from open_workout_coach.load_exercises import load_file_and_media_links |
|
||||||
from open_workout_coach.map_yaml_to_database import process_config_into_workout_file |
|
||||||
|
|
||||||
|
|
||||||
@click.group("cli") |
|
||||||
def cli(): |
|
||||||
pass |
|
||||||
|
|
||||||
|
|
||||||
@cli.command() |
|
||||||
@click.argument('input_path', type=click.Path(exists=True)) |
|
||||||
@click.argument('output_destination', type=click.Path(exists=True)) |
|
||||||
def create_plan(input_path, output_destination): |
|
||||||
""" |
|
||||||
Creates a openworkout plan from the input yaml file. |
|
||||||
""" |
|
||||||
config = load_file_and_media_links(file_path=input_path) |
|
||||||
process_config_into_workout_file(config=config, output_destination=output_destination) |
|
||||||
|
|
||||||
|
|
||||||
FILE = 'data/input/samples/exercises.yaml' |
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__': |
|
||||||
cli() |
|
Loading…
Reference in new issue