Fixed #9, implemented zeit to be the default format for import/export

This commit is contained in:
マリウス 2021-02-07 14:47:31 -04:00
parent 822ded9dfc
commit 84047e834e
No known key found for this signature in database
GPG key ID: C228EF0A530AF06F
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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()