File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ type networkCreateOptions struct {
31
31
dnsServers []string
32
32
}
33
33
34
- // NewNetworkCreateCommand function to create PowerVS network.
35
- func NewNetworkCreateCommand () * cobra.Command {
34
+ // CreateCommand function to create PowerVS network.
35
+ func CreateCommand () * cobra.Command {
36
36
cmd := & cobra.Command {
37
37
Use : "create NETWORK_NAME" ,
38
38
Short : "Create PowerVS network" ,
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ import (
22
22
"sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/options"
23
23
)
24
24
25
- // NewNetworkCommand function to add PowerVS network commands.
26
- func NewNetworkCommand () * cobra.Command {
25
+ // Commands function to add PowerVS network commands.
26
+ func Commands () * cobra.Command {
27
27
cmd := & cobra.Command {
28
28
Use : "network" ,
29
29
Short : "Perform PowerVS network operations" ,
30
30
}
31
31
options .AddPowerVSCommonFlags (cmd )
32
32
33
- cmd .AddCommand (NewNetworkCreateCommand ())
33
+ cmd .AddCommand (CreateCommand ())
34
34
35
35
return cmd
36
36
}
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ package powervs
19
19
import (
20
20
"github.com/spf13/cobra"
21
21
22
- networkcmd "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/cmd/powervs/network"
22
+ "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/cmd/powervs/network"
23
23
)
24
24
25
- // NewPowerVSCommand initialises and returns powervs command.
26
- func NewPowerVSCommand () * cobra.Command {
25
+ // Commands initialises and returns powervs command.
26
+ func Commands () * cobra.Command {
27
27
cmd := & cobra.Command {
28
28
Use : "powervs" ,
29
29
Short : "Commands for operations on PowerVS resources" ,
30
30
}
31
- cmd .AddCommand (networkcmd . NewNetworkCommand ())
31
+ cmd .AddCommand (network . Commands ())
32
32
33
33
return cmd
34
34
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
26
26
logf "sigs.k8s.io/cluster-api/cmd/clusterctl/log"
27
27
28
- powervscmd "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/cmd/powervs"
28
+ "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/cmd/powervs"
29
29
"sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/options"
30
30
)
31
31
@@ -49,7 +49,7 @@ func rootCommand() *cobra.Command {
49
49
},
50
50
}
51
51
cmd .PersistentFlags ().AddGoFlagSet (flag .CommandLine )
52
- cmd .AddCommand (powervscmd . NewPowerVSCommand ())
52
+ cmd .AddCommand (powervs . Commands ())
53
53
54
54
return cmd
55
55
}
You can’t perform that action at this time.
0 commit comments