refactor: moved a lot of flags & added comments
Comments added to fix the golint errors on exported things need comments
This commit is contained in:
@ -14,10 +14,10 @@ var serverAddCommand = &cli.Command{
|
||||
ArgsUsage: "<host> [<user>] [<port>]",
|
||||
Description: "[<user>], [<port>] SSH connection details",
|
||||
Action: func(c *cli.Context) error {
|
||||
arg_len := c.Args().Len()
|
||||
argLen := c.Args().Len()
|
||||
args := c.Args().Slice()
|
||||
if arg_len < 3 {
|
||||
args = append(args, make([]string, 3-arg_len)...)
|
||||
if argLen < 3 {
|
||||
args = append(args, make([]string, 3-argLen)...)
|
||||
}
|
||||
if err := client.CreateContext(args[0], args[1], args[2]); err != nil {
|
||||
logrus.Fatal(err)
|
||||
|
Reference in New Issue
Block a user