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 {
3131 dnsServers []string
3232}
3333
34- // NewNetworkCreateCommand function to create PowerVS network.
35- func NewNetworkCreateCommand () * cobra.Command {
34+ // CreateCommand function to create PowerVS network.
35+ func CreateCommand () * cobra.Command {
3636 cmd := & cobra.Command {
3737 Use : "create NETWORK_NAME" ,
3838 Short : "Create PowerVS network" ,
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ import (
2222 "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/options"
2323)
2424
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 {
2727 cmd := & cobra.Command {
2828 Use : "network" ,
2929 Short : "Perform PowerVS network operations" ,
3030 }
3131 options .AddPowerVSCommonFlags (cmd )
3232
33- cmd .AddCommand (NewNetworkCreateCommand ())
33+ cmd .AddCommand (CreateCommand ())
3434
3535 return cmd
3636}
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ package powervs
1919import (
2020 "github.com/spf13/cobra"
2121
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"
2323)
2424
25- // NewPowerVSCommand initialises and returns powervs command.
26- func NewPowerVSCommand () * cobra.Command {
25+ // Commands initialises and returns powervs command.
26+ func Commands () * cobra.Command {
2727 cmd := & cobra.Command {
2828 Use : "powervs" ,
2929 Short : "Commands for operations on PowerVS resources" ,
3030 }
31- cmd .AddCommand (networkcmd . NewNetworkCommand ())
31+ cmd .AddCommand (network . Commands ())
3232
3333 return cmd
3434}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
2525
2626 logf "sigs.k8s.io/cluster-api/cmd/clusterctl/log"
2727
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"
2929 "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/options"
3030)
3131
@@ -49,7 +49,7 @@ func rootCommand() *cobra.Command {
4949 },
5050 }
5151 cmd .PersistentFlags ().AddGoFlagSet (flag .CommandLine )
52- cmd .AddCommand (powervscmd . NewPowerVSCommand ())
52+ cmd .AddCommand (powervs . Commands ())
5353
5454 return cmd
5555}
You can’t perform that action at this time.
0 commit comments