local

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultCLIExtension is the file extension used to mark a file as an infrakit cli command.
	// Typically templates have the .ikt extension, while CLI commands have .ikc extension
	DefaultCLIExtension = ".ikc"
)

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir returns the directory to use for modules, which may be customized by the environment.

func IsMissingDir

func IsMissingDir(e error) bool

IsMissingDir returns if the error is from missing or not a directory

func NewModules

func NewModules(plugins func() discovery.Plugins, dir string) (cli.Modules, error)

NewModules returns an implementation of Modules using data found locally on disk

func Setup

func Setup() error

Setup sets up the necessary environment for running this module -- ie make sure the CLI module directories are present, etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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