forked from toolshed/abra
fix: show defaults, dont set
This commit is contained in:
parent
8e3f90a7f3
commit
960e47437c
@ -73,8 +73,8 @@ func EnsureNewCapsulVPSFlags(c *cli.Context) error {
|
|||||||
if len(CapsulSSHKeys.Value()) == 0 && !NoInput {
|
if len(CapsulSSHKeys.Value()) == 0 && !NoInput {
|
||||||
var sshKeys string
|
var sshKeys string
|
||||||
prompt := &survey.Input{
|
prompt := &survey.Input{
|
||||||
Message: "specify capsul SSH keys",
|
Message: "specify capsul SSH keys (e.g. me@foo.com)",
|
||||||
Default: "me@foo.com,you@bar.com",
|
Default: "",
|
||||||
}
|
}
|
||||||
if err := survey.AskOne(prompt, &CapsulSSHKeys); err != nil {
|
if err := survey.AskOne(prompt, &CapsulSSHKeys); err != nil {
|
||||||
return err
|
return err
|
||||||
@ -152,8 +152,8 @@ func EnsureNewHetznerCloudVPSFlags(c *cli.Context) error {
|
|||||||
if len(HetznerCloudSSHKeys.Value()) == 0 && !NoInput {
|
if len(HetznerCloudSSHKeys.Value()) == 0 && !NoInput {
|
||||||
var sshKeys string
|
var sshKeys string
|
||||||
prompt := &survey.Input{
|
prompt := &survey.Input{
|
||||||
Message: "specify hetzner cloud SSH keys",
|
Message: "specify hetzner cloud SSH keys (e.g. me@foo.com)",
|
||||||
Default: "me@foo.com,you@bar.com",
|
Default: "",
|
||||||
}
|
}
|
||||||
if err := survey.AskOne(prompt, &sshKeys); err != nil {
|
if err := survey.AskOne(prompt, &sshKeys); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user