cmd

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cmd 实现 CLI 命令

Package cmd 实现 CLI 命令

Index

Constants

View Source
const (
	Author     = "Alfons <alfonsxh@gmail.com>"
	ProjectURL = "https://github.com/AlfonsSkills/SkillSync"
)

项目元数据

Variables

View Source
var (
	Version   = "dev"
	GitCommit = "unknown"
	BuildTime = "unknown"
)

版本信息(通过 ldflags 注入)

Functions

func Execute

func Execute()

Execute 执行根命令

Types

type InteractiveContext

type InteractiveContext struct {
	Providers     []target.ToolProvider // 选中的目标工具
	InstallGlobal bool                  // 是否安装到全局目录
	InstallLocal  bool                  // 是否安装到项目目录
	ProjectRoot   string                // 项目根目录(如果 InstallLocal 为 true)
}

InteractiveContext 存储交互式选择的结果

type LocalSkill

type LocalSkill struct {
	Name        string
	Path        string
	Provider    target.ToolProvider // 使用 Provider 替代 Target
	Valid       bool                // Contains SKILL.md
	Category    string              // Category (e.g., public, .system, or empty for root)
	Description string              // Skill description from SKILL.md frontmatter
}

LocalSkill represents a locally discovered skill

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL