config

package
v1.0.97 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write added in v1.0.76

func Write(c *Config) error

Write will write the config into the path location

Types

type Config

type Config struct {
	// Organizations is the list of Organization where the user
	// is currently logged in
	Organizations map[string]Organization `yaml:"organizations"`
}

Config is the structure handling the config of the CLI

func Read added in v1.0.76

func Read() (*Config, error)

Read will read the config from the path and returns a config struct

type Organization

type Organization struct {
	// Organization token
	Token string `yaml:"token"`
}

Organization is an organization where the user is logged in

Jump to

Keyboard shortcuts

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