Skip to content

Commit

Permalink
refactor: Change input method for private_key field (#305)
Browse files Browse the repository at this point in the history
* refactor: Change input method for private_key field

Signed-off-by: Darren Murray <[email protected]>
  • Loading branch information
dmurray-lacework authored Jan 27, 2021
1 parent 799d9c3 commit e56cdc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/integration_gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func createGcpConfigIntegration() error {
},
{
Name: "private_key",
Prompt: &survey.Input{Message: "Private Key:"},
Prompt: &survey.Editor{Message: "Enter properly formatted Private Key:"},
Validate: survey.Required,
},
{
Expand Down
24 changes: 12 additions & 12 deletions cli/cmd/integration_gcp_pub_sub_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,33 @@ func createGcpPubSubChannelIntegration() error {
Validate: survey.Required,
},
{
Name: "client_id",
Prompt: &survey.Input{Message: "Client ID:"},
Name: "topic_id",
Prompt: &survey.Input{Message: "Topic ID:"},
Validate: survey.Required,
},
{
Name: "private_key_id",
Prompt: &survey.Input{Message: "Private Key ID:"},
Name: "project_id",
Prompt: &survey.Input{Message: "Project ID:"},
Validate: survey.Required,
},
{
Name: "client_email",
Prompt: &survey.Input{Message: "Client Email:"},
Name: "client_id",
Prompt: &survey.Input{Message: "Client ID:"},
Validate: survey.Required,
},
{
Name: "private_key",
Prompt: &survey.Input{Message: "Private Key:"},
Name: "client_email",
Prompt: &survey.Input{Message: "Client Email:"},
Validate: survey.Required,
},
{
Name: "project_id",
Prompt: &survey.Input{Message: "Project ID:"},
Name: "private_key_id",
Prompt: &survey.Input{Message: "Private Key ID:"},
Validate: survey.Required,
},
{
Name: "topic_id",
Prompt: &survey.Input{Message: "Topic ID:"},
Name: "private_key",
Prompt: &survey.Editor{Message: "Enter properly formatted Private Key:"},
Validate: survey.Required,
},
{
Expand Down

0 comments on commit e56cdc6

Please sign in to comment.