Skip to content

Commit bdcbe9f

Browse files
committed
chore(promrw): cleanup, add alias
1 parent 7bdc283 commit bdcbe9f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
File renamed without changes.
File renamed without changes.

cmd/promrw/replay.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ func (r *Replay) Run(ctx context.Context) error {
124124
func newReplayCommand() *cobra.Command {
125125
var replay Replay
126126
cmd := &cobra.Command{
127-
Use: "replay",
128-
Short: "Send recorded requests to remote write server",
129-
Args: cobra.NoArgs,
127+
Use: "replay",
128+
Aliases: []string{"send"},
129+
Short: "Send recorded requests to remote write server",
130+
Args: cobra.NoArgs,
130131
RunE: func(cmd *cobra.Command, args []string) error {
131132
return replay.Run(cmd.Context())
132133
},

0 commit comments

Comments
 (0)