Skip to content

Commit

Permalink
Merge pull request #123 from itsksaurabh/master
Browse files Browse the repository at this point in the history
Simplify Version command
  • Loading branch information
vgarvardt authored Aug 14, 2020
2 parents ce951ba + 8d4e736 commit 602add2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
7 changes: 4 additions & 3 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 All @@ -34,7 +36,6 @@ func init() {
}
}

RootCmd.AddCommand(NewVersionCmd())
RootCmd.AddCommand(NewUpdateCmd())
RootCmd.AddCommand(NewInitCmd())
RootCmd.AddCommand(NewStealCmd())
Expand Down
25 changes: 0 additions & 25 deletions cmd/version.go

This file was deleted.

0 comments on commit 602add2

Please sign in to comment.