Skip to content

Commit

Permalink
fix: show connected account ID if deleting a connected account's reso…
Browse files Browse the repository at this point in the history
…urce (#1267)
  • Loading branch information
charliecruzan-stripe authored Oct 21, 2024
1 parent 1e24ca8 commit fd804f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/resource/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ func (oc *OperationCmd) runOperationCmd(cmd *cobra.Command, args []string) error
if displayName != "" {
fmt.Printf("> Account Name: %s\n", displayName)
}
if strings.HasPrefix(path, "/v1/accounts/") {
connectedAccountID := strings.Split(path, "/")[3]
fmt.Printf("> Connected Account: %s\n", connectedAccountID)
}

// call the confirm command from base request
confirmation, err := oc.Confirm()
Expand Down

0 comments on commit fd804f7

Please sign in to comment.