cmd

package
v0.0.0-...-c4238e9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const CacheVersionKey = "awpark-version"
View Source
const CmdFlag = "cmd"
View Source
const UpgradeUrl = "https://github.com/TTNomi/awpark/releases/latest/download/AWPark.alfredworkflow"

Variables

This section is empty.

Functions

func Execute

func Execute()

func GetOutboundIP

func GetOutboundIP() (ipStr string, err error)

func NeedUpgrade

func NeedUpgrade() bool

func Register

func Register(cmd Command)

Types

type Command

type Command interface {
	Use() string
	ActionItem() *aw.Item
	Action(args []string)
	GetRunMode() RunMode
}

type RunMode

type RunMode int
const (
	RunMode_None RunMode = iota
	RunMode_Run
	RunMode_Backgroud
)

type RunModeBackground

type RunModeBackground struct{}

func (*RunModeBackground) GetRunMode

func (d *RunModeBackground) GetRunMode() RunMode

type RunModeNone

type RunModeNone struct{}

func (*RunModeNone) GetRunMode

func (d *RunModeNone) GetRunMode() RunMode

type RunModeRun

type RunModeRun struct{}

func (*RunModeRun) GetRunMode

func (d *RunModeRun) GetRunMode() RunMode

Jump to

Keyboard shortcuts

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