cli/pkg/cmd/org/org.go
Viktor Szépe 6d9dd57774 Fix typos
2024-05-09 20:15:27 +00:00

24 lines
514 B
Go

package org
import (
"github.com/MakeNowJust/heredoc"
orgListCmd "github.com/cli/cli/v2/pkg/cmd/org/list"
"github.com/cli/cli/v2/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdOrg(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "org <command>",
Short: "Manage organizations",
Long: "Work with GitHub organizations.",
Example: heredoc.Doc(`
$ gh org list
`),
GroupID: "core",
}
cmdutil.AddGroup(cmd, "General commands", orgListCmd.NewCmdList(f, nil))
return cmd
}