Fixed #9, implemented zeit
to be the default format for import/export
This commit is contained in:
parent
822ded9dfc
commit
84047e834e
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ var exportCmd = &cobra.Command{
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(exportCmd)
|
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(&since, "since", "", "Date/time to start the export from")
|
||||||
exportCmd.Flags().StringVar(&until, "until", "", "Date/time to export until")
|
exportCmd.Flags().StringVar(&until, "until", "", "Date/time to export until")
|
||||||
exportCmd.Flags().StringVarP(&project, "project", "p", "", "Project to be exported")
|
exportCmd.Flags().StringVarP(&project, "project", "p", "", "Project to be exported")
|
||||||
|
|
|
@ -107,7 +107,7 @@ var importCmd = &cobra.Command{
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(importCmd)
|
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
|
var err error
|
||||||
database, err = InitDatabase()
|
database, err = InitDatabase()
|
||||||
|
|
Loading…
Reference in a new issue