Skip to content

Commit

Permalink
dump: Return deprecation error on dump command
Browse files Browse the repository at this point in the history
  • Loading branch information
tsenart committed Aug 18, 2018
1 parent 9d45d92 commit 442432c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dump.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

import (
"flag"
"fmt"
)

func dumpCmd() command {
fs := flag.NewFlagSet("vegeta dump", flag.ExitOnError)
return command{fs, func([]string) error {
return fmt.Errorf("vegeta dump has been deprecated and succeeded by the vegeta encode command.")
}}
}
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func main() {
"report": reportCmd(),
"plot": plotCmd(),
"encode": encodeCmd(),
"dump": dumpCmd(),
}

fs := flag.NewFlagSet("vegeta", flag.ExitOnError)
Expand Down

0 comments on commit 442432c

Please sign in to comment.