config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Repo

func Repo() string

func Root

func Root() string

func SetProject

func SetProject(new string) error

Types

type API added in v0.0.3

type API struct {
	ImageName     string `mapstructure:"image_name"`
	ContainerName string `mapstructure:"container_name"`
}

type Config

type Config struct {
	Current  string
	Projects map[string]Project
}

func Get

func Get() Config

type Project

type Project struct {
	Repo        string
	Root        string
	TrunkBranch string `mapstructure:"trunk_branch"`
	API         API    `mapstructure:"api"`
}

func CurrentProject

func CurrentProject() Project

Jump to

Keyboard shortcuts

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