From 2c1dbe3f6fcd491ed5f88caeb6324efb155511f7 Mon Sep 17 00:00:00 2001 From: Jason-ZW Date: Fri, 28 Aug 2020 15:35:59 +0800 Subject: [PATCH] refactor(autok3s): change create & join --user flag Signed-off-by: Jason-ZW --- cmd/create.go | 2 +- cmd/join.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/create.go b/cmd/create.go index da2222ea..d11d8b7c 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -29,7 +29,7 @@ var ( func init() { createCmd.Flags().StringVarP(&cProvider, "provider", "p", cProvider, "Provider is a module which provides an interface for managing cloud resources") - createCmd.Flags().StringVar(&cSSH.User, "user", cSSH.User, "SSH user for host") + createCmd.Flags().StringVar(&cSSH.User, "ssh-user", cSSH.User, "SSH user for host") createCmd.Flags().StringVar(&cSSH.Port, "ssh-port", cSSH.Port, "SSH port for host") createCmd.Flags().StringVar(&cSSH.SSHKey, "ssh-key", cSSH.SSHKey, "SSH private key path") } diff --git a/cmd/join.go b/cmd/join.go index 0fba84a0..41b46941 100644 --- a/cmd/join.go +++ b/cmd/join.go @@ -29,7 +29,7 @@ var ( func init() { joinCmd.Flags().StringVarP(&jProvider, "provider", "p", jProvider, "Provider is a module which provides an interface for managing cloud resources") - joinCmd.Flags().StringVar(&jSSH.User, "user", jSSH.User, "SSH user for host") + joinCmd.Flags().StringVar(&jSSH.User, "ssh-user", jSSH.User, "SSH user for host") joinCmd.Flags().StringVar(&jSSH.Port, "ssh-port", jSSH.Port, "SSH port for host") joinCmd.Flags().StringVar(&jSSH.SSHKey, "ssh-key", jSSH.SSHKey, "SSH private key path") }