@@ -12,20 +12,14 @@ import (
12
12
// rootCmd represents the base command when called without any subcommands
13
13
var rootCmd = & cobra.Command {
14
14
Use : "timmy" ,
15
- Short : "A brief description of your application" ,
16
- Long : `A longer description that spans multiple lines and likely contains
17
- examples and usage of using your application. For example:
15
+ Short : "Simple and easy to use time tracker" ,
16
+ Long : `Timmy is a simple and easy to use time tracker. You can use it to track, manage and sync your time from any terminal.
18
17
19
- Cobra is a CLI library for Go that empowers applications.
20
- This application is a tool to generate the needed files
21
- to quickly create a Cobra application.` ,
22
- // Uncomment the following line if your bare application
23
- // has an action associated with it:
24
- // Run: func(cmd *cobra.Command, args []string) { },
18
+ More information at https://github.com/snturk/timmy/blob/main/README.md
19
+ ` ,
25
20
}
26
21
27
22
// Execute adds all child commands to the root command and sets flags appropriately.
28
- // This is called by main.main(). It only needs to happen once to the rootCmd.
29
23
func Execute () {
30
24
err := rootCmd .Execute ()
31
25
if err != nil {
@@ -34,13 +28,5 @@ func Execute() {
34
28
}
35
29
36
30
func init () {
37
- // Here you will define your flags and configuration settings.
38
- // Cobra supports persistent flags, which, if defined here,
39
- // will be global for your application.
40
-
41
- // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.timmy.yaml)")
42
-
43
- // Cobra also supports local flags, which will only run
44
- // when this action is called directly.
45
- rootCmd .Flags ().BoolP ("toggle" , "t" , false , "Help message for toggle" )
31
+ //rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
46
32
}
0 commit comments