Skip to content

Commit

Permalink
set version of cmd tool using underlying Version struct field
Browse files Browse the repository at this point in the history
  • Loading branch information
itsksaurabh committed Aug 14, 2020
1 parent ce951ba commit 0502d03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ import (

var (
verbose bool
version = "0.0.0-dev"

// RootCmd steals and anonymises databases
RootCmd = &cobra.Command{
Use: "klepto",
Short: "Steals and anonymises databases",
Use: "klepto",
Version: version,
Short: "Steals and anonymises databases",
Long: `Klepto by HelloFresh.
Takes the structure and data from one (mysql) database (--from),
anonymises the data according to the provided configuration file,
Expand Down

0 comments on commit 0502d03

Please sign in to comment.