Documentation ¶
Index ¶
- func WhoAMI() string
- type Alfred
- func (al *Alfred) GetBundleDir() string
- func (al *Alfred) GetBundleID() string
- func (al *Alfred) GetCacheDir() string
- func (al *Alfred) GetDataDir() string
- func (al *Alfred) GetHomeDir() string
- func (al *Alfred) GetID() string
- func (al *Alfred) GetResult() *Res
- func (al *Alfred) Output() (int, error)
- func (al *Alfred) ResultAppend(it Item) *Alfred
- func (al *Alfred) ResultSet(its []Item) *Alfred
- func (al *Alfred) ResultToIndentJson() ([]byte, error)
- func (al *Alfred) ResultToJson() ([]byte, error)
- func (al *Alfred) SetCacheDir(dir string) (*Alfred, error)
- func (al *Alfred) SetDataDir(dir string) (*Alfred, error)
- type Icon
- type Item
- type Res
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alfred ¶
type Alfred struct {
// contains filtered or unexported fields
}
func (*Alfred) GetBundleDir ¶
func (*Alfred) GetBundleID ¶
func (*Alfred) GetCacheDir ¶
func (*Alfred) GetDataDir ¶
func (*Alfred) GetHomeDir ¶
func (*Alfred) ResultAppend ¶
func (*Alfred) ResultToIndentJson ¶
func (*Alfred) ResultToJson ¶
type Icon ¶
func NewDefaultIcon ¶
func NewDefaultIcon() Icon
func NewErrorIcon ¶
func NewErrorIcon() Icon
func NewFailIcon ¶
func NewFailIcon() Icon
func NewSuccIcon ¶
func NewSuccIcon() Icon
type Item ¶
type Item struct { Uid string `json:"uid"` Arg string `json:"arg"` Type string `json:"type"` Valid bool `json:"valid"` AutoComplete string `json:"autocomplete"` Title string `json:"title"` SubTitle string `json:"subtitle"` Icon Icon `json:"icon"` }
func NewCommonItem ¶
func NewDefaultItem ¶
func NewDefaultItem() Item
func NewErrorItem ¶
func NewErrorTitleItem ¶
func NewNoResultItem ¶
func NewNoResultItem() Item
Click to show internal directories.
Click to hide internal directories.