Skip to content

Commit

Permalink
cmd/send: print step_id only if we generated it
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed Mar 21, 2024
1 parent 92f1918 commit 2a26299
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ var sendCmd = &cobra.Command{
return
}

var quite bool
if stepID == "" {
stepID = idgen.New(idgen.CommandPrefix)
} else {
quite = true
}

data := server.RecordedData{
Expand All @@ -55,8 +58,10 @@ var sendCmd = &cobra.Command{
display.ErrorWithSupportCTA(err)
return
}
// print the stepID to stdout
fmt.Print(stepID)

if !quite {
fmt.Print(stepID)
}
},
}

Expand Down

0 comments on commit 2a26299

Please sign in to comment.