config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserChrome

func AddUserChrome(c Userchrome)

func SetUserChromeConfig added in v0.2.0

func SetUserChromeConfig(name string, key string, value string, raw bool) error

func UnsetUserChromeConfig added in v0.2.0

func UnsetUserChromeConfig(name string, key string) error

func WriteConfig added in v0.2.0

func WriteConfig(config Config) error

Types

type Config added in v0.2.0

type Config struct {
	Profile     string       `toml:"profile"`
	Userchromes []Userchrome `toml:"userchromes"`
}

func ReadConfig added in v0.2.0

func ReadConfig() Config

type Userchrome

type Userchrome struct {
	Name     string             `toml:"name"`
	CloneURL string             `toml:"clone_url"`
	Configs  []UserchromeConfig `toml:"configs"`
}

func GetUserChromes

func GetUserChromes() []Userchrome

type UserchromeConfig added in v0.2.0

type UserchromeConfig struct {
	Key   string `toml:"key"`
	Value string `toml:"value"`
	Raw   bool   `toml:"raw"`
}

Jump to

Keyboard shortcuts

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