Workflow

package
v0.0.0-...-75559e2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlfredWorkflow

type AlfredWorkflow struct {
	Valid    bool   `json:"valid"`
	Title    string `json:"title"`
	Subtitle string `json:"subtitle"`
	Icon     Icon   `json:"icon"`
	Arg      string `json:"arg"`
}

单个alfred结构体

type Alfreds

type Alfreds struct {
	Arrs []AlfredWorkflow `json:"items"`
}

一组alfred结构体

func New

func New() *Alfreds

创建alfred对象

func (*Alfreds) Add

func (a *Alfreds) Add(valid bool, title, subtitle, icon, arg string)

添加一组新通知

func (*Alfreds) SendFeedback

func (a *Alfreds) SendFeedback()

回送通知

type Icon

type Icon struct {
	Path string `json:"path"`
}

Jump to

Keyboard shortcuts

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