Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RootCmd steals and anonymises databases RootCmd = &cobra.Command{ Use: "klepto", 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, and inserts that data into another mysql database (--to). Perfect for bringing your live data to staging!`, Example: "klepto steal -c .klepto.toml|yaml|json --from root:root@localhost:3306/fromDb --to root:root@localhost:3306/toDb", } )
Functions ¶
func NewVersionCmd ¶
NewVersionCmd creates a new version command
func RunSteal ¶
func RunSteal(opts *StealOptions) (err error)
RunSteal is the handler for the rootCmd.
Types ¶
type StealOptions ¶
type StealOptions struct {
// contains filtered or unexported fields
}
StealOptions represents the command options
type UpdateOptions ¶
type UpdateOptions struct {
// contains filtered or unexported fields
}
UpdateOptions are the command flags
Click to show internal directories.
Click to hide internal directories.