Skip to content

Commit 68dcb1a

Browse files
committed
Code review changes
1 parent a9937e5 commit 68dcb1a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cmd/krew/cmd/root.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ func preRun(cmd *cobra.Command, _ []string) error {
143143
}
144144
if !isMigrated {
145145
fmt.Fprintln(os.Stderr, `This version of Krew is not supported anymore. Please manually migrate:
146-
1. Backup plugin list: kubectl krew list > backup.txt
147-
2. Uninstall Krew: https://krew.sigs.k8s.io/docs/user-guide/setup/uninstall/
148-
3. Install latest Krew: https://krew.sigs.k8s.io/docs/user-guide/setup/install/
149-
4. Install plugins from backup: kubectl krew install < backup.txt`)
146+
1. Uninstall Krew: https://krew.sigs.k8s.io/docs/user-guide/setup/uninstall/
147+
2. Install latest Krew: https://krew.sigs.k8s.io/docs/user-guide/setup/install/
148+
3. Install the plugins you used`)
150149
return errors.New("krew home outdated")
151150
}
152151

cmd/krew/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ import (
2121
)
2222

2323
func main() {
24+
defer klog.Flush()
2425
cmd.Execute()
25-
klog.Flush()
2626
}

0 commit comments

Comments
 (0)