cfg

package
v0.0.0-...-0e3b330 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseDirectory

func BaseDirectory() string

func ConfigPath

func ConfigPath() string

Types

type Angular

type Angular struct {
}

type Config

type Config struct {
	GitHub      map[string]GitHub    `yaml:"github"`
	Git         map[string]Git       `yaml:"git"`
	Golang      map[string]Golang    `yaml:"go"`
	Terraform   map[string]Terraform `yaml:"terraform"`
	Angular     map[string]Angular   `yaml:"angular"`
	Environment map[string]string    `yaml:"environment"`
}

func Configuration

func Configuration() *Config

func (*Config) AddEnvironment

func (c *Config) AddEnvironment(variable string, value string)

func (*Config) AddGitDirectory

func (c *Config) AddGitDirectory(path string, git Git)

func (*Config) AddGitHubUser

func (c *Config) AddGitHubUser(user string, github GitHub)

func (*Config) AddGolang

func (c *Config) AddGolang(path string, goConfig Golang)

func (*Config) AddTerraform

func (c *Config) AddTerraform(path string, config Terraform)

func (*Config) DeleteEnvironment

func (c *Config) DeleteEnvironment(variable string)

func (*Config) DeleteGitDirectory

func (c *Config) DeleteGitDirectory(path string)

func (*Config) DeleteGitHubUser

func (c *Config) DeleteGitHubUser(path string)

func (*Config) DeleteGolang

func (c *Config) DeleteGolang(path string)

func (*Config) DeleteTerraform

func (c *Config) DeleteTerraform(path string)

func (*Config) Save

func (c *Config) Save()

type Git

type Git struct {
	Remote string `yaml:"remote"`
}

type GitHub

type GitHub struct {
	Token string `yaml:"token"`
}

type Golang

type Golang struct {
	Module string `yaml:"module"`
}

type Terraform

type Terraform struct {
}

Jump to

Keyboard shortcuts

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