lint
Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
parent
c43ca9225f
commit
37a40c1eb3
2 changed files with 18 additions and 18 deletions
|
|
@ -82,8 +82,8 @@ func newSkillsInstallCmd() *cobra.Command {
|
||||||
Short: "Install skill from GitHub",
|
Short: "Install skill from GitHub",
|
||||||
Example: ` picoclaw skills install sipeed/picoclaw-skills/weather
|
Example: ` picoclaw skills install sipeed/picoclaw-skills/weather
|
||||||
picoclaw skills install --registry clawhub github`,
|
picoclaw skills install --registry clawhub github`,
|
||||||
Args: cobra.MinimumNArgs(1),
|
Args: cobra.MinimumNArgs(1),
|
||||||
RunE: runSkillsInstall,
|
RunE: runSkillsInstall,
|
||||||
}
|
}
|
||||||
// Add --registry flag support
|
// Add --registry flag support
|
||||||
cmd.Flags().String("registry", "", "Install from registry (e.g., clawhub)")
|
cmd.Flags().String("registry", "", "Install from registry (e.g., clawhub)")
|
||||||
|
|
@ -97,26 +97,26 @@ func newSkillsRemoveCmd() *cobra.Command {
|
||||||
Short: "Remove installed skill",
|
Short: "Remove installed skill",
|
||||||
Example: ` picoclaw skills remove weather
|
Example: ` picoclaw skills remove weather
|
||||||
picoclaw skills uninstall weather`,
|
picoclaw skills uninstall weather`,
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
RunE: runSkillsRemove,
|
RunE: runSkillsRemove,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func newSkillsInstallBuiltinCmd() *cobra.Command {
|
func newSkillsInstallBuiltinCmd() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "install-builtin",
|
Use: "install-builtin",
|
||||||
Short: "Install all builtin skills to workspace",
|
Short: "Install all builtin skills to workspace",
|
||||||
Example: ` picoclaw skills install-builtin`,
|
Example: ` picoclaw skills install-builtin`,
|
||||||
RunE: runSkillsInstallBuiltin,
|
RunE: runSkillsInstallBuiltin,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func newSkillsListBuiltinCmd() *cobra.Command {
|
func newSkillsListBuiltinCmd() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "list-builtin",
|
Use: "list-builtin",
|
||||||
Short: "List available builtin skills",
|
Short: "List available builtin skills",
|
||||||
Example: ` picoclaw skills list-builtin`,
|
Example: ` picoclaw skills list-builtin`,
|
||||||
RunE: runSkillsListBuiltin,
|
RunE: runSkillsListBuiltin,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -130,11 +130,11 @@ func newSkillsSearchCmd() *cobra.Command {
|
||||||
|
|
||||||
func newSkillsShowCmd() *cobra.Command {
|
func newSkillsShowCmd() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "show <name>",
|
Use: "show <name>",
|
||||||
Short: "Show skill details",
|
Short: "Show skill details",
|
||||||
Example: ` picoclaw skills show weather`,
|
Example: ` picoclaw skills show weather`,
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
RunE: runSkillsShow,
|
RunE: runSkillsShow,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
version = "dev"
|
version = "dev"
|
||||||
gitCommit string
|
gitCommit string
|
||||||
buildTime string
|
buildTime string
|
||||||
goVersion string
|
goVersion string
|
||||||
)
|
)
|
||||||
|
|
||||||
const logo = "🦞"
|
const logo = "🦞"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue