Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "timenote", Short: "Take notes with attached timestamps", Long: `A timestamp will be attached when you start a not and a second one as soon as you stop working on that note You can tag notes`, Run: func(cmd *cobra.Command, args []string) { if len(args) == 0 { return } description := strings.Join(args, " ") if args[0] == "--" { description = strings.Join(args[1:], "") } p, err := persistence.NewToggl(token, viper.GetInt("workspace"), caching) if err != nil { log.Fatal(err) } if err := p.New(); err != nil { log.Fatal(err) } _ = p.Append(description, viper.GetString("separator")) }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Source Files ¶
- browser.go
- cache.go
- cache_info.go
- cache_update.go
- clients.go
- clients_create.go
- completion.go
- execute.go
- execute_client.go
- interactive.go
- projects.go
- projects_create.go
- projects_delete.go
- root.go
- run.go
- timestamp.go
- timestamp_append.go
- timestamp_current.go
- timestamp_description.go
- timestamp_done.go
- timestamp_duration.go
- timestamp_new.go
- timestamp_project.go
- timestamp_tag.go
- today.go
- token.go
- token_delete.go
- token_save.go
Click to show internal directories.
Click to hide internal directories.