config

package
v0.0.0-...-358895b Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 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"`
}

Jump to

Keyboard shortcuts

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