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: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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