cli/pkg/cmd/org/org.go
2023-03-31 15:53:55 -06: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
}