Skip to content

Commit

Permalink
feat: Add cacheFile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Apr 13, 2024
1 parent 73f974f commit c8ef0f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var (
cfgFile string
verbose bool
debug bool
cacheFile string

// Working Directory
workingDir string
Expand All @@ -36,6 +37,7 @@ var rootCommand = &cobra.Command{
func init() {
cobra.OnInitialize(initConfig)
rootCommand.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file (default is $HOME/.video-manager)")
rootCommand.PersistentFlags().StringVarP(&cacheFile, "cache", "C", "", "cache file (default is $HOME/.video-manager_history)")

// Verbosity
rootCommand.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Verbose output")
Expand Down

0 comments on commit c8ef0f5

Please sign in to comment.