Skip to content

Commit

Permalink
Added version info
Browse files Browse the repository at this point in the history
  • Loading branch information
mymmrac committed Oct 24, 2021
1 parent 44bccc6 commit 60d97da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ Displays count information based in profiles & rules specified.`,
isExecuting = true
cmdArgs = args
},
Version: "v1.0.0",
}

rootCmd.SetVersionTemplate(`{{printf "The-Line. Version %s" .Version}}
`)

rootCmd.Flags().BoolVarP(&recursiveFlag, "recursive", "r", false, "Recursively search in dirs matched by pattern")
rootCmd.Flags().BoolVarP(&dotFilesFlag, "dot-files", "d", false, "Include dot files/folders")
rootCmd.Flags().StringVarP(&configFileFlag, "config", "c", "", "User defined config file")
Expand Down

0 comments on commit 60d97da

Please sign in to comment.