Skip to content

Commit

Permalink
feat: Add get_events to os_cal
Browse files Browse the repository at this point in the history
  • Loading branch information
leoshimo committed Apr 19, 2024
1 parent 38883bd commit a550f8a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/os_cal.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"--start-date" start_date
"--end-date" end_date))

(spawn_srv :os_cal :interface '(add_event))
(defn get_events (start_date end_date)
"(get_events START_DATE END_DATE) - Search for calendar events that occur between START_DATE and END_DATE
START_DATE and END_DATE are both strings that specify start and end date.
Valid date formats are \"1/1\", \"1/1/2024\", \"now\", \"today at 8am\", \"in one hour\", and other standard date formats."
(exec "eventkitcli" "get-events"
"--start-date" start_date
"--end-date" end_date))

# DEMO: Run + Test in Editor
(spawn_srv :os_cal :interface '(add_event get_events))

0 comments on commit a550f8a

Please sign in to comment.