Skip to content

Commit

Permalink
cscli hub: don't export constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jan 31, 2024
1 parent 70627fd commit 8a9365c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/crowdsec-cli/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ cscli hub upgrade`,
DisableAutoGenTag: true,
}

cmd.AddCommand(cli.NewListCmd())
cmd.AddCommand(cli.NewUpdateCmd())
cmd.AddCommand(cli.NewUpgradeCmd())
cmd.AddCommand(cli.NewTypesCmd())
cmd.AddCommand(cli.newListCmd())
cmd.AddCommand(cli.newUpdateCmd())
cmd.AddCommand(cli.newUpgradeCmd())
cmd.AddCommand(cli.newTypesCmd())

return cmd
}
Expand Down Expand Up @@ -85,7 +85,7 @@ func (cli cliHub) list(cmd *cobra.Command, args []string) error {
return nil
}

func (cli cliHub) NewListCmd() *cobra.Command {
func (cli cliHub) newListCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "list [-a]",
Short: "List all installed configurations",
Expand Down Expand Up @@ -117,7 +117,7 @@ func (cli cliHub) update(cmd *cobra.Command, args []string) error {
return nil
}

func (cli cliHub) NewUpdateCmd() *cobra.Command {
func (cli cliHub) newUpdateCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "update",
Short: "Download the latest index (catalog of available configurations)",
Expand Down Expand Up @@ -172,7 +172,7 @@ func (cli cliHub) upgrade(cmd *cobra.Command, args []string) error {
return nil
}

func (cli cliHub) NewUpgradeCmd() *cobra.Command {
func (cli cliHub) newUpgradeCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "upgrade",
Short: "Upgrade all configurations to their latest version",
Expand Down Expand Up @@ -215,7 +215,7 @@ func (cli cliHub) types(cmd *cobra.Command, args []string) error {
return nil
}

func (cli cliHub) NewTypesCmd() *cobra.Command {
func (cli cliHub) newTypesCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "types",
Short: "List supported item types",
Expand Down

0 comments on commit 8a9365c

Please sign in to comment.