config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultConfig

func CreateDefaultConfig(homedir string) error

CreateDefaultConfig tries to create a config.yaml file in the default location for configuration files, which is $HOME/.shipyard. If that directory does not exist, the function creates it. It also pre-populates the file with keys for Shipyard's configurable values.

Types

type Config

type Config struct {
	Token    string             `yaml:"api_token"`
	Org      string             `yaml:"org"`
	Verbose  bool               `yaml:"verbose"`
	ApiURL   string             `yaml:"api_url"`
	Profiles map[string]Profile `yaml:"profiles"`
}

type Profile added in v1.8.0

type Profile struct {
	AuthToken string `yaml:"auth_token"`
}

Jump to

Keyboard shortcuts

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