commands

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands map[string]Command = map[string]Command{}

Functions

func Edit

func Edit(args []string) error

Edit a snippet based on index from last query results

func Editor added in v0.0.3

func Editor(args []string) error

Login saves a token acquired from the web page into the user config file

func Link(args []string) error

Link prints the url to a query result

func Login

func Login(args []string) error

Login saves a token acquired from the web page into the user config file

func New

func New([]string) error

New saves a new snippet into the borg mind

func PipeTo added in v0.0.3

func PipeTo(args []string) error

func Query

func Query(q string) error

Query the borg server

func Worked

func Worked(args []string) error

Worked lets you mark a result as relevant one for a query

Types

type Command added in v0.0.3

type Command struct {
	F       func([]string) error
	Summary string
}

Jump to

Keyboard shortcuts

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