mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-08 01:05:16 -04:00
cli: refer to --force and --config flags (#1205)
* add reference to --config and --force
This commit is contained in:
parent
f8a3bb2092
commit
51eef675a2
2 changed files with 5 additions and 4 deletions
|
@ -206,11 +206,12 @@ func (m *miniUpCmd) prepareConfig(cmd *cobra.Command, fileHandler file.Handler)
|
|||
_, err = fileHandler.Stat(constants.ConfigFilename)
|
||||
if err == nil {
|
||||
// config already exists, prompt user to overwrite
|
||||
cmd.PrintErrln("A config file already exists in the current workspace.")
|
||||
cmd.PrintErrln("A config file already exists in the current workspace. Use --config to use an existing config file.")
|
||||
ok, err := askToConfirm(cmd, "Do you want to overwrite it?")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !ok {
|
||||
return nil, errors.New("not overwriting existing config")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue