register initial skills commands
This commit is contained in:
parent
e57fb436fa
commit
5d049cb897
2 changed files with 20 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ import (
|
|||
runCmd "github.com/cli/cli/v2/pkg/cmd/run"
|
||||
searchCmd "github.com/cli/cli/v2/pkg/cmd/search"
|
||||
secretCmd "github.com/cli/cli/v2/pkg/cmd/secret"
|
||||
skillsCmd "github.com/cli/cli/v2/pkg/cmd/skills"
|
||||
sshKeyCmd "github.com/cli/cli/v2/pkg/cmd/ssh-key"
|
||||
statusCmd "github.com/cli/cli/v2/pkg/cmd/status"
|
||||
variableCmd "github.com/cli/cli/v2/pkg/cmd/variable"
|
||||
|
|
@ -164,6 +165,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) (*cobra.Command,
|
|||
cmd.AddCommand(repoCmd.NewCmdRepo(&repoResolvingCmdFactory))
|
||||
cmd.AddCommand(rulesetCmd.NewCmdRuleset(&repoResolvingCmdFactory))
|
||||
cmd.AddCommand(runCmd.NewCmdRun(&repoResolvingCmdFactory))
|
||||
cmd.AddCommand(skillsCmd.NewCmdSkills(f))
|
||||
cmd.AddCommand(workflowCmd.NewCmdWorkflow(&repoResolvingCmdFactory))
|
||||
cmd.AddCommand(labelCmd.NewCmdLabel(&repoResolvingCmdFactory))
|
||||
cmd.AddCommand(cacheCmd.NewCmdCache(&repoResolvingCmdFactory))
|
||||
|
|
|
|||
18
pkg/cmd/skills/skills.go
Normal file
18
pkg/cmd/skills/skills.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package skills
|
||||
|
||||
import (
|
||||
"github.com/cli/cli/v2/pkg/cmdutil"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
// NewCmdSkills returns the top-level "skills" command.
|
||||
func NewCmdSkills(f *cmdutil.Factory) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "skills <command>",
|
||||
Short: "Install and manage agent skills",
|
||||
Long: "Install and manage agent skills from GitHub repositories.",
|
||||
GroupID: "core",
|
||||
}
|
||||
|
||||
return cmd
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue