Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventsCmd = &cobra.Command{
Use: "events",
Short: "Manage your events",
Long: "Insert new events, delete event or check all your events by day or week",
}
View Source
var EventsDeleteCmd = &cobra.Command{ Use: "delete", Short: "Delete event by ID", Run: func(cmd *cobra.Command, args []string) { client := calendar.NewClient() err := client.GetAgendaID() if err != nil { log.Fatal(err) } client.DeleteEvent(eventId) }, }
View Source
var EventsInsertCmd = &cobra.Command{ Use: "insert", Short: "Insert new event", Run: func(cmd *cobra.Command, args []string) { client := calendar.NewClient() err := client.GetAgendaID() if err != nil { log.Fatal(err) } client.InsertEvent(calendar.InsertEventData{ Title: title, Description: description, Location: location, DateTimeStart: dateTimeStart, DateTimeEnd: dateTimeEnd, }) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.