rc

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Current string                 `yaml:"current"`
	Targets map[string]interface{} `yaml:"targets"`
	Aliases map[string]string      `yaml:"aliases"`
}

func Apply

func Apply() Config

func (*Config) Apply

func (c *Config) Apply() error

func (*Config) SetCurrent

func (c *Config) SetCurrent(alias string) error

func (*Config) SetTarget

func (c *Config) SetTarget(alias, url string) error

func (*Config) SetToken

func (c *Config) SetToken(token string) error

func (*Config) URL

func (c *Config) URL() string

func (*Config) Write

func (c *Config) Write() error

Jump to

Keyboard shortcuts

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