Skip to content

Commit

Permalink
Fixed #9, implemented zeit to be the default format for import/export
Browse files Browse the repository at this point in the history
  • Loading branch information
マリウス committed Feb 7, 2021
1 parent 822ded9 commit 84047e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion z/exportCmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var exportCmd = &cobra.Command{

func init() {
rootCmd.AddCommand(exportCmd)
exportCmd.Flags().StringVar(&format, "format", "", "Format to export, possible values: zeit, tyme")
exportCmd.Flags().StringVar(&format, "format", "zeit", "Format to export, possible values: zeit, tyme")
exportCmd.Flags().StringVar(&since, "since", "", "Date/time to start the export from")
exportCmd.Flags().StringVar(&until, "until", "", "Date/time to export until")
exportCmd.Flags().StringVarP(&project, "project", "p", "", "Project to be exported")
Expand Down
2 changes: 1 addition & 1 deletion z/importCmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var importCmd = &cobra.Command{

func init() {
rootCmd.AddCommand(importCmd)
importCmd.Flags().StringVar(&format, "format", "", "Format to import, possible values: zeit, tyme")
importCmd.Flags().StringVar(&format, "format", "zeit", "Format to import, possible values: zeit, tyme")

var err error
database, err = InitDatabase()
Expand Down

0 comments on commit 84047e8

Please sign in to comment.