cli/commands/changelog/changelog.go

23 lines
603 B
Go

package changelog
import (
"github.com/spf13/cobra"
changelogAddCmd "gitlab.com/gitlab-org/cli/commands/changelog/add"
changelogGenerateCmd "gitlab.com/gitlab-org/cli/commands/changelog/generate"
"gitlab.com/gitlab-org/cli/commands/cmdutils"
)
func NewCmdChangelog(f *cmdutils.Factory) *cobra.Command {
changelogCmd := &cobra.Command{
Use: "changelog <command> [flags]",
Short: `Interact with the changelog API`,
Long: ``,
}
// Subcommands
changelogCmd.AddCommand(changelogGenerateCmd.NewCmdGenerate(f))
changelogCmd.AddCommand(changelogAddCmd.NewCmdAdd(f))
return changelogCmd
}