Refactoring start sla-drain (#7)

Changing sla-drain command to be less cumbersome. sla-drain command now takes --count or --percentage and they are mutually exclusive.
This commit is contained in:
Renan I. Del Valle 2020-01-29 16:12:53 -08:00 committed by GitHub
parent b65ac55c1c
commit fa0179292a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 55 additions and 63 deletions

View file

@ -80,7 +80,9 @@ var rootCmd = &cobra.Command{
}
func Execute() {
rootCmd.Execute()
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)
}
}
// TODO(rdelvalle): Move more from connect into this function