cli

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadResourceFromContext

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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