mirror of https://gitlab.com/gitlab-org/cli.git
23 lines
603 B
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
|
|
}
|