config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	LogLevel:    "warn",
	ProjectPath: "~/work/projects",
	Remotes: []info.RemoteInfo{{
		Host:       "https://gitlab.com",
		Token:      "yourtokenhere",
		CloneProto: info.CloneProtoSSH,
		Name:       "GitLab",
		Type:       "gitlab",
	}},
	Cache: cacheConfig{
		Ttl: 168 * time.Hour,
		Load: loadConfig{
			OwnerOnly: true,
		},
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	// Named keys above maintained for backwards compatibility
	// Ideally only Gitlabs is used
	Remotes     []info.RemoteInfo
	LogLevel    string      `yaml:"logLevel" json:"logLevel" enum:"info,warn,debug,error"`
	ProjectPath string      `yaml:"projectPath" json:"projectPath"`
	Cache       cacheConfig `yaml:"cache" json:"cache"`
	Dump        struct {
		Full bool `yaml:"full" json:"full"`
	} `yaml:"dump" json:"dump"`
	Editor editorConfig `yaml:"editor" json:"editor"`
}

Jump to

Keyboard shortcuts

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