File tree Expand file tree Collapse file tree 4 files changed +3
-2
lines changed Expand file tree Collapse file tree 4 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ Available Commands:
65
65
version Print the version of cn
66
66
kube Outputs cn kubernetes template (cn kube > kube-cn.yml)
67
67
update-check Print cn current and latest version number
68
- enter Connect inside a given cluster
69
68
70
69
Flags:
71
70
-h, --help help for cn
Original file line number Diff line number Diff line change @@ -21,5 +21,6 @@ func init() {
21
21
cliClusterRestart (),
22
22
cliClusterLogs (),
23
23
cliClusterPurge (),
24
+ cliEnterNano (),
24
25
)
25
26
}
Original file line number Diff line number Diff line change 4
4
"github.com/spf13/cobra"
5
5
)
6
6
7
+ // cliEnterNano is the Cobra CLI call
7
8
func cliEnterNano () * cobra.Command {
8
9
cmd := & cobra.Command {
9
10
Use : "enter [cluster]" ,
@@ -16,6 +17,7 @@ func cliEnterNano() *cobra.Command {
16
17
return cmd
17
18
}
18
19
20
+ // enterNano enters inside a container
19
21
func enterNano (cmd * cobra.Command , args []string ) {
20
22
containerNameToShow := args [0 ]
21
23
containerName := containerNamePrefix + containerNameToShow
Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ func init() {
115
115
cliVersionNano (),
116
116
cliKubeNano (),
117
117
cliUpdateCheckNano (),
118
- cliEnterNano (),
119
118
)
120
119
rootCmd .SetHelpCommand (& cobra.Command {
121
120
Use : "no-help" ,
You can’t perform that action at this time.
0 commit comments