config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BRANCH = "master"
View Source
var BUILT = "now"
View Source
var REVISION = "HEAD"
View Source
var VERSION = "dev"

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowUnknown bool

	Accepted   map[string]bool
	Unaccepted map[string]bool
	Exceptions map[string]bool
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(path string) (config *Config)

func (*Config) ReadConfig

func (c *Config) ReadConfig() (err error)

type File

type File struct {
	Accepted   []string `yaml:"accepted"`
	Unaccepted []string `yaml:"unaccepted"`
	Exceptions []string `yaml:"exceptions"`
}

func (*File) AllowUnknown

func (f *File) AllowUnknown() bool

type OutputSettings

type OutputSettings struct {
	OutputTemplate string `short:"t" long:"output-template" description:"Output template to use"`
	UseJSON        bool   `short:"j" long:"json" description:"Print output in JSON format"`
	DirectOnly     bool   `long:"direct-only" description:"Print only direct dependencies"`
	IndirectOnly   bool   `long:"indirect-only" description:"Print only indirect dependencies"`
}

type Version

type Version struct {
	Version   string
	Revision  string
	Branch    string
	GoVersion string
	Os        string
	Arch      string
	Built     string
}

func GetVersion

func GetVersion() *Version

func (*Version) ExtendedInfo

func (v *Version) ExtendedInfo() (string, error)

func (*Version) Printer

func (v *Version) Printer(c *cli.Context)

func (*Version) ShortInfo

func (v *Version) ShortInfo() string

Jump to

Keyboard shortcuts

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