package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Nov 1, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package cbtrc encapsulates common code for reading .cbtrc files.
Filename returns the filename consulted for standard configuration.
type Config struct {
Project, Instance string
Creds string
}
Config represents a configuration.
Load loads a .cbtrc file.
If the file is not present, an empty config is returned.
CheckFlags checks that the required config values are set.
func (c *Config) RegisterFlags()
RegisterFlags registers a set of standard flags for this config.
It should be called before flag.Parse.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.