alfred

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd string, args ...string)

func RunIfFile

func RunIfFile(file, cmd string, args ...string)

func RunWithOutput

func RunWithOutput(cmd string, args ...string) (string, error)

func SavePlist

func SavePlist(filename string, p Plist)

SavePlist saves a plist to an XML file

func WithLdflags added in v0.4.0

func WithLdflags(ldflags ...string) func(*Alfred)

Types

type Alfred

type Alfred struct {
	WorkflowsPath string
	WorkflowPath  string
	BuildDir      string
	PrefsDir      string
	VersionTag    string
	ZipName       string
	// contains filtered or unexported fields
}

func NewAlfred

func NewAlfred(options ...func(*Alfred)) *Alfred

func (*Alfred) Build

func (a *Alfred) Build() error

func (*Alfred) GetExistingInstall

func (a *Alfred) GetExistingInstall() (string, error)
func (a *Alfred) GetExistingLink() (string, error)

func (*Alfred) Info

func (a *Alfred) Info()
func (a *Alfred) Link() error

func (*Alfred) Pack

func (a *Alfred) Pack() error
func (a *Alfred) Unlink() error

type Plist

type Plist map[string]interface{}

Plist is a plist data structure

func LoadPlist

func LoadPlist(filename string) (p Plist)

LoadPlist loads a plist from an XML file

Jump to

Keyboard shortcuts

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