mirror of
https://github.com/Threnklyn/zeit.git
synced 2026-05-18 21:03:30 +02:00
Fixed #9, implemented zeit to be the default format for import/export
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user