Skip to content

Commit

Permalink
Some more command examples #45 #46
Browse files Browse the repository at this point in the history
  • Loading branch information
mgifos committed Jan 19, 2019
1 parent 5b1af42 commit 4912be5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Usage: quick-plan [import|schedule] [options] <file>
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'.
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions src/main/scala/com.github.mgifos.workouts/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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("")

Expand Down

0 comments on commit 4912be5

Please sign in to comment.