configure

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegularFileName = "config.yaml"
	SecretsFileName = "secrets.yaml"
)

Variables

This section is empty.

Functions

func CreateFolders added in v1.2.0

func CreateFolders() string

Create the folder where the configuration should live Returns the folder path created

func GetFolderPath

func GetFolderPath() string

Get the folder path for where the configuration should live

func WriteConfig added in v1.2.0

func WriteConfig(config RegularOutline)

Write the regular configuration for the program

func WriteSecrets added in v1.2.0

func WriteSecrets(secrets SecretsOutline)

Write the secret configuration for the program

Types

type RegularOutline

type RegularOutline struct {
	CloneClipboard bool `yaml:"clone_clipboard"`
}

func AskQuestions

func AskQuestions() RegularOutline

Ask questions to fill in reglar config

type SecretsOutline

type SecretsOutline struct {
	PAT      string `yaml:"pat"`
	Username string `yaml:"username"`
}

Jump to

Keyboard shortcuts

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