Skip to content

Commit 84047e8

Browse files
author
マリウス
committed
Fixed #9, implemented zeit to be the default format for import/export
1 parent 822ded9 commit 84047e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

z/exportCmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var exportCmd = &cobra.Command{
9696

9797
func init() {
9898
rootCmd.AddCommand(exportCmd)
99-
exportCmd.Flags().StringVar(&format, "format", "", "Format to export, possible values: zeit, tyme")
99+
exportCmd.Flags().StringVar(&format, "format", "zeit", "Format to export, possible values: zeit, tyme")
100100
exportCmd.Flags().StringVar(&since, "since", "", "Date/time to start the export from")
101101
exportCmd.Flags().StringVar(&until, "until", "", "Date/time to export until")
102102
exportCmd.Flags().StringVarP(&project, "project", "p", "", "Project to be exported")

z/importCmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var importCmd = &cobra.Command{
107107

108108
func init() {
109109
rootCmd.AddCommand(importCmd)
110-
importCmd.Flags().StringVar(&format, "format", "", "Format to import, possible values: zeit, tyme")
110+
importCmd.Flags().StringVar(&format, "format", "zeit", "Format to import, possible values: zeit, tyme")
111111

112112
var err error
113113
database, err = InitDatabase()

0 commit comments

Comments
 (0)