From 4912be59b10fdbdde8eac2b3e23ba2d70082f673 Mon Sep 17 00:00:00 2001 From: mgifos Date: Sat, 19 Jan 2019 08:29:27 +0100 Subject: [PATCH] Some more command examples #45 #46 --- README.md | 10 ++++++++-- src/main/scala/com.github.mgifos.workouts/Main.scala | 6 ++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c8e9ac2..df1505e 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Usage: quick-plan [import|schedule] [options] Command: import -Imports all workout definitions from CSV file. If it's omitted, it is will be on by default. +Imports all workout definitions from CSV file. Command: schedule [options] Schedules your weekly plan defined in CSV in Garmin Connect calendar, starting from the first day of first week or ending on the last day of the last week. Either start or end date must be entered so the scheduling can be done properly. In case both are entered, start date has priority. All dates have to be entered in ISO date format e.g. '2018-03-24'. @@ -64,9 +64,15 @@ Schedules your weekly plan defined in CSV in Garmin Connect calendar, starting f EXAMPLES -Schedules ultra 80k plan targeting 28-4-2018 for a race day +#Imports all the workouts from ultra 80k plan +quick-plan import -e your-mail-address@example.com ultra-80k-runnersworld.csv +#Deletes all the workouts from ultra 80k plan +quick-plan -x your-mail-address@example.com ultra-80k-runnersworld.csv + +#Schedules ultra 80k plan targeting 28-4-2018 for a race day, while previously deleting if any with the same name already exists quick-plan schedule -n 2018-04-29 -x -e your-mail-address@example.com ultra-80k-runnersworld.csv + ``` ## Workout notation diff --git a/src/main/scala/com.github.mgifos.workouts/Main.scala b/src/main/scala/com.github.mgifos.workouts/Main.scala index 62fdb50..0a751a2 100644 --- a/src/main/scala/com.github.mgifos.workouts/Main.scala +++ b/src/main/scala/com.github.mgifos.workouts/Main.scala @@ -104,8 +104,10 @@ object Main extends App { ) note("EXAMPLES").text( - "EXAMPLES\n\nSchedules ultra 80k plan targeting 28-4-2018 for a race day (also deletes existing workouts with the same names)" + - "\n\nquick-plan schedule -n 2018-04-29 -x -e your-mail-address@example.com ultra-80k-runnersworld.csv") + "EXAMPLES\n\n" + + "#Imports all the workouts from ultra 80k plan\nquick-plan import -e your-mail-address@example.com ultra-80k-runnersworld.csv" + + "\n\n#Deletes all the workouts from ultra 80k plan\nquick-plan -x your-mail-address@example.com ultra-80k-runnersworld.csv" + + "\n\n#Schedules ultra 80k plan targeting 28-4-2018 for a race day, while previously deleting if any with the same name already exists\nquick-plan schedule -n 2018-04-29 -x -e your-mail-address@example.com ultra-80k-runnersworld.csv") note("")