config

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

func Profiles

func Profiles() *profileHandler

func Projects

func Projects() *projectHandler

func SetConfigNil

func SetConfigNil()

Used in tests for clearing the current config seer

Types

type Profile

type Profile struct {
	Provider string
	Token    string
	Default  bool

	// TODO get from config when verifying token
	// may need to fake in tests
	GitUsername string   `yaml:"git_username"`
	GitEmail    string   `yaml:"git_email"`
	NetworkType string   `yaml:"type,omitempty"`
	Network     string   `yaml:"network"`
	History     []string `yaml:"history"`
	// contains filtered or unexported fields
}

func (Profile) Name

func (p Profile) Name() string

type Project

type Project struct {
	Name           string `yaml:"name,omitempty"`
	DefaultProfile string `yaml:"default_profile"`
	Location       string
}

func (Project) CodeLoc

func (p Project) CodeLoc() (dir string)

func (Project) ConfigLoc

func (p Project) ConfigLoc() (dir string)

func (Project) Interface

func (p Project) Interface() (projectSchema.Project, error)

func (Project) LibraryLoc

func (p Project) LibraryLoc() (dir string)

func (Project) WebsiteLoc

func (p Project) WebsiteLoc() (dir string)

Jump to

Keyboard shortcuts

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