config

package
v0.0.0-...-f954743 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitConfigFileName    = ".gitconfig"
	GlobalIgnoreFileName = ".gitignore_global"
)
View Source
const (
	GitConfigTemplate = `` /* 145-byte string literal not displayed */

	//GlobalGitConfigTemplate contains recommendations from https://github.com/dandavison/delta#get-started
	GlobalGitConfigTemplate = `` /* 789-byte string literal not displayed */

)
View Source
const GlobalIgnore = `
.idea
.terraform
.DS_Store
.vscode
Icon
stale_outputs_checked
*.iml
venv
node_modules
.next
`

Variables

View Source
var ErrConfigNotFound = errors.New("config not found")
View Source
var ErrGitConfigNotFoundForIncludeDir = errors.New("git config include not found for include dir")
View Source
var ErrSshKeyPathNotFound = errors.New("ssh key path not found")

Functions

func CreGlobalIgnore

func CreGlobalIgnore() error

func Del

func Del(host, workspace string) error

func Print

func Print(c *Config)

func Set

func Set(host, workspace, username, email, sshKeyPath string) error

func Use

func Use(host, username string) error

Types

type Config

type Config struct {
	Host       string
	Username   string
	Email      string
	SshKeyPath FilePath
}

func Get

func Get(host, workspace string) (*Config, error)

type FilePath

type FilePath string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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