Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/pkg/cli/command/apiKey/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/pinecone-io/cli/internal/pkg/utils/exit"
"github.com/pinecone-io/cli/internal/pkg/utils/help"
"github.com/pinecone-io/cli/internal/pkg/utils/msg"
"github.com/pinecone-io/cli/internal/pkg/utils/pcio"
"github.com/pinecone-io/cli/internal/pkg/utils/sdk"
"github.com/pinecone-io/cli/internal/pkg/utils/style"
"github.com/pinecone-io/cli/internal/pkg/utils/text"
Expand Down Expand Up @@ -103,7 +104,7 @@ func confirmDeleteApiKey(apiKeyName string) {
msg.WarnMsg("This action cannot be undone.")

// Prompt the user
fmt.Print("Do you want to continue? (y/N): ")
pcio.Print("Do you want to continue? (y/N): ")

// Read the user's input
reader := bufio.NewReader(os.Stdin)
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/cli/command/auth/local_keys_prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ func confirmPruneKeys(plan []planItem, options pruneLocalKeysCmdOptions) (bool,
msg.WarnMsg("This action cannot be undone.")

// Prompt the user
fmt.Print("Do you want to continue? (y/N): ")
pcio.Print("Do you want to continue? (y/N): ")

// Read the user's input
reader := bufio.NewReader(os.Stdin)
input, err := reader.ReadString('\n')
if err != nil {
fmt.Println("Error reading input:", err)
msg.FailMsg("Error reading input: %+v", err)
return false, err
}

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cli/command/organization/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func confirmDelete(organizationName string, organizationID string) {
msg.WarnMsg("This action cannot be undone.")

// Prompt the user
fmt.Print("Do you want to continue? (y/N): ")
pcio.Print("Do you want to continue? (y/N): ")

// Read the user's input
reader := bufio.NewReader(os.Stdin)
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cli/command/project/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func confirmDelete(projectName string) {
msg.WarnMsg("This action cannot be undone.")

// Prompt the user
fmt.Print("Do you want to continue? (y/N): ")
pcio.Print("Do you want to continue? (y/N): ")

// Read the user's input
reader := bufio.NewReader(os.Stdin)
Expand Down
Loading