config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 4 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 {
	GitConfig    GitConfig     `yaml:"git"`
	Environments []Environment `yaml:"environments"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

func (Config) HasNextEnvironment

func (c Config) HasNextEnvironment(envName string) bool

func (Config) IsEnvironmentAutomated

func (c Config) IsEnvironmentAutomated(name string) (bool, error)

func (Config) NextEnvironment

func (c Config) NextEnvironment(envName string) (Environment, error)

func (Config) PrevEnvironment

func (c Config) PrevEnvironment(envName string) (Environment, error)

type Environment

type Environment struct {
	Name      string `yaml:"name"`
	Automated bool   `yaml:"auto"`
}

type GitConfig

type GitConfig struct {
	DefaultBranch string `yaml:"defaultBranch"`
	RemoteName    string `yaml:"remoteName"`
	User          string `yaml:"user"`
}

Jump to

Keyboard shortcuts

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