Documentation
¶
Index ¶
- Variables
- func NewAIChatCmd() *gcli.Command
- func NewAIToolCmd() *gcli.Command
- func NewClaudeSetCmd() *gcli.Command
- func NewQuestionCmd() *gcli.Command
- func NewTranslateCmd() *gcli.Command
- func SkillsCreateCmd() *gcli.Command
- func SkillsDeleteCmd() *gcli.Command
- func SkillsEditCmd() *gcli.Command
- func SkillsListCmd() *gcli.Command
- func SkillsOpenCmd() *gcli.Command
- func SkillsPathCmd() *gcli.Command
- func SkillsShowCmd() *gcli.Command
- type AICommonOptions
- type AITerminal
Constants ¶
This section is empty.
Variables ¶
View Source
var AICommand = &gcli.Command{ Name: "ai", Desc: "AI tool command", Subs: []*gcli.Command{ NewAIChatCmd(), NewQuestionCmd(), NewTranslateCmd(), NewAIToolCmd(), ClaudeCommand, SkillsCmd, }, Config: func(c *gcli.Command) { c.BoolOpt2(&aiOpts.showConfig, "show", "Show config info") c.StrOpt2(&aiOpts.configKey, "key", "Show config info by key, with --show") }, Func: func(c *gcli.Command, args []string) error { if aiOpts.showConfig { aisrv, err := service.AI().Init() if err != nil { return fmt.Errorf("failed to initialize AI service: %w", err) } aisrv.ShowConfig(aiOpts.configKey) return nil } return c.ShowHelp() }, }
View Source
var ClaudeCommand = &gcli.Command{ Name: "claude", Desc: "Claude code managment commands", Aliases: []string{"cc"}, Subs: []*gcli.Command{ NewClaudeSetCmd(), }, }
ClaudeCommand is the AI Claude command group
View Source
var SkillsCmd = &gcli.Command{ Name: "skills", Desc: "Manage local AI skills for extending capabilities", Aliases: []string{"skill"}, Help: ` Manage local AI skills that extend Claude's capabilities. Skills are stored in: - User level: ~/.claude/skills/<skill-name>/SKILL.md - Project level: ./.claude/skills/<skill-name>/SKILL.md Each skill is a directory containing a SKILL.md file with YAML frontmatter and markdown instructions. `, Subs: []*gcli.Command{ SkillsListCmd(), SkillsShowCmd(), SkillsCreateCmd(), SkillsEditCmd(), SkillsDeleteCmd(), SkillsPathCmd(), SkillsOpenCmd(), }, Func: func(c *gcli.Command, args []string) error { return c.ShowHelp() }, }
Functions ¶
func NewClaudeSetCmd ¶
NewClaudeSetCmd creates the Claude Code info manage command
func SkillsOpenCmd ¶
SkillsOpenCmd opens the skills directory in file manager
func SkillsPathCmd ¶
SkillsPathCmd shows the skills directory path
func SkillsShowCmd ¶
SkillsShowCmd shows details of a specific skill
Types ¶
type AICommonOptions ¶
type AICommonOptions struct {
// custom set llm model name
Model string
// custom set llm provider name. eg: openai, deepseek, aliyun/bailian, siliconflow
Provider string
SystemMsg string
}
func (*AICommonOptions) BindFlags ¶
func (o *AICommonOptions) BindFlags(c *gcli.Command)
BindFlags for common options
type AITerminal ¶
type AITerminal struct {
AICommonOptions
SystemPrompt string
// contains filtered or unexported fields
}
func (*AITerminal) Run ¶
func (at *AITerminal) Run()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.