cli

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cli handles the command line interface of chef-runner. This includes parsing of options and arguments as well as printing help text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel

func LogLevel() log.Level

LogLevel returns the log level to use based on the CHEF_RUNNER_LOG environment variable.

Types

type Flags

type Flags struct {
	Host    string
	Machine string
	Kitchen string
	Local   bool

	SSHOptions   stringSlice
	RsyncOptions stringSlice

	Resolver string

	ChefVersion string

	Format   string
	LogLevel string
	JSONFile string
	Recipes  []string

	Sudo  bool
	Color bool

	ShowVersion bool
}

Flags stores the options and arguments passed on the command line.

func ParseFlags

func ParseFlags(args []string) (*Flags, error)

ParseFlags parses the command line and returns the result.

Jump to

Keyboard shortcuts

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