类型 CommandItem
API 文档由 Go 源码生成,内容为英文。
type CommandItem struct {
ID ui.ID
Label string
Value string
Hint string
Shortcut string
Selected bool
Checked bool
Disabled bool
// Icon, when it has any geometry, is painted before the label. A single-color
// icon takes the item's text color; a multi-color one keeps its own.
Icon ui.Icon
}CommandItem describes one caller-filtered command result.