File: alias.go

package info (click to toggle)
glab 1.53.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,936 kB
  • sloc: sh: 295; makefile: 153; perl: 99; ruby: 68; javascript: 67
file content (22 lines) | stat: -rw-r--r-- 624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package alias

import (
	deleteCmd "gitlab.com/gitlab-org/cli/commands/alias/delete"
	listCmd "gitlab.com/gitlab-org/cli/commands/alias/list"
	setCmd "gitlab.com/gitlab-org/cli/commands/alias/set"
	"gitlab.com/gitlab-org/cli/commands/cmdutils"

	"github.com/spf13/cobra"
)

func NewCmdAlias(f *cmdutils.Factory) *cobra.Command {
	aliasCmd := &cobra.Command{
		Use:   "alias [command] [flags]",
		Short: `Create, list, and delete aliases.`,
		Long:  ``,
	}
	aliasCmd.AddCommand(deleteCmd.NewCmdDelete(f, nil))
	aliasCmd.AddCommand(listCmd.NewCmdList(f, nil))
	aliasCmd.AddCommand(setCmd.NewCmdSet(f, nil))
	return aliasCmd
}