Skip to content

Commit

Permalink
Fixed an issue with sync command flags
Browse files Browse the repository at this point in the history
  • Loading branch information
shellbear committed Sep 9, 2019
1 parent 48cc9b5 commit 08e275c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func Execute() {
func init() {
listCmd.PersistentFlags().StringVarP(&EpitechToken, "token", "t", "", "Epitech API Token")
listCmd.MarkPersistentFlagRequired("token")
syncCmd.PersistentFlags().StringVarP(&EpitechToken, "token", "t", "", "Epitech API Token")
syncCmd.MarkPersistentFlagRequired("token")

cli.AddCommand(versionCmd)
cli.AddCommand(clearCmd)
Expand Down
2 changes: 1 addition & 1 deletion pkg/epical/epical.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
CALENDAR_NAME = "EpiCal"
VERSION = "0.1.2"
VERSION = "0.1.3"
)

func ListEvents(epitechToken string) {
Expand Down

0 comments on commit 08e275c

Please sign in to comment.