pluginutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadResourceFromContext added in v0.0.4

func LoadResourceFromContext(c *cli.Context, flag string) (string, error)

LoadResourceFromContext loads data from a CLI flag.

If the value of the specified flag starts with '@', the flag is interpreted as a filename and the contents of the file are returned.

In all other cases, the flag value is returned directly.

func NewContext

func NewContext(args []string, myflags []cli.Flag) (context *cli.Context)

NewContext - convenience method to construct a valid cli.Context within a plugin

Types

This section is empty.

Jump to

Keyboard shortcuts

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