Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
Signed-off-by: Dinor Geler <digeler@microsoft.com>
  • Loading branch information
Dinor Geler committed Sep 6, 2020
1 parent 0adad7d commit ab5f468
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ $ helm 2to3 move config [flags]
Flags:

--dry-run simulate a command
--skip-confirmation if set, skips confirmation message before performing move
-h, --help help for move
```

Expand Down
8 changes: 4 additions & 4 deletions cmd/move_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func runMove(cmd *cobra.Command, args []string) error {
// plugins and starters. It does not copy cache.
func Move(dryRun bool) error {
var err error
var doCleanup bool
var doConfig bool
if dryRun {
log.Println("NOTE: This is in dry-run mode, the following actions will not be executed.")
log.Println("Run without --dry-run to take the actions described below:")
Expand All @@ -71,14 +71,14 @@ func Move(dryRun bool) error {
if skipConfirmation {

log.Println("Skipping confirmation before performing move.")
doCleanup = true
doConfig = true
} else {
doCleanup, err = utils.AskConfirmation("Move Config", "move the v2 configuration")
doConfig, err = utils.AskConfirmation("Move Config", "move the v2 configuration")
if err != nil {
return err
}
}
if !doCleanup {
if !doConfig {
log.Println("Move will not proceed as the user didn't answer (Y|y) in order to continue.")
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "2to3"
version: "0.6.0"
version: "0.7.0"
usage: "migrate and cleanup Helm v2 configuration and releases in-place to Helm v3"
description: "migrate and cleanup Helm v2 configuration and releases in-place to Helm v3"
command: "$HELM_PLUGIN_DIR/bin/2to3"
Expand Down

0 comments on commit ab5f468

Please sign in to comment.