alfred/command/help/help.go
2026-03-28 19:27:32 +08:00

23 lines
592 B
Go

package help
import (
aw "github.com/deanishe/awgo"
"gitea.micah.wiki/pandora/alfred/model"
"gitea.micah.wiki/pandora/alfred/pkg/stringx"
)
func Do(_ []string) []*model.Item {
return []*model.Item{
{
Title: "目前支持命令(goto、decode、encode、date等)", // 主提示词
Subtitle: stringx.NewStrPoint("subtitle"), // 副提示词
Match: stringx.NewStrPoint("match"),
UID: stringx.NewStrPoint("help-goto"),
Arg: []string{"copytext", "help"}, // alfred 输出内容 回车会在剪切板
Valid: true,
Icon: aw.IconHelp,
},
}
}