Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // rootCmd is the Viper root command RootCmd = &cobra.Command{ Use: "params", PersistentPreRun: func(cmd *cobra.Command, args []string) { switch flags.loglevel { case "error": log.SetLevel(logrus.ErrorLevel) case "warn": log.SetLevel(logrus.WarnLevel) case "info": log.SetLevel(logrus.InfoLevel) case "debug": log.SetLevel(logrus.DebugLevel) case "trace": log.SetLevel(logrus.TraceLevel) default: log.SetLevel(logrus.InfoLevel) } setup() }, } )
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct {
// contains filtered or unexported fields
}
Flags struct contains settings for the root command
type Outputs ¶
type Outputs struct { Favorites *database.FavoritesItem `json:"favorites" yaml:"favorites"` Followers *database.FollowersItem `json:"followers" yaml:"followers"` Friends *database.FriendsItem `json:"friends" yaml:"friends"` Timeline *database.TweetsItem `json:"timeline" yaml:"timeline"` }
Click to show internal directories.
Click to hide internal directories.