settings

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists() (string, bool)

Types

type Path

type Path struct {
	Plugins Plugins `toml:"plugins"`
}

type Plugins

type Plugins struct {
	Services string `toml:"services" default:"$HOME/.mikros/plugins/services"`
	Features string `toml:"features" default:"$HOME/.mikros/plugins/features"`
}

type Profile added in v0.8.0

type Profile struct {
	Project Project `toml:"project"`
}

type Project

type Project struct {
	ProtobufMonorepo ProtobufMonorepo `toml:"protobuf_monorepo"`
	Templates        Templates        `toml:"templates"`
}

type ProtobufMonorepo added in v0.7.0

type ProtobufMonorepo struct {
	RepositoryName string `toml:"repository_name" default:"protobuf-workspace"`
	ProjectName    string `toml:"project_name" default:"services"`
	VcsPath        string `toml:"vcs_path" default:"github.com/your-organization"`
}

type ProtobufTemplates added in v0.9.0

type ProtobufTemplates struct {
	CustomAuthName string `toml:"custom_auth_name" default:"scopes"`
}

type Settings

type Settings struct {
	Paths   Path               `toml:"paths"`
	UI      UI                 `toml:"ui"`
	App     Profile            `toml:"app"`
	Profile map[string]Profile `toml:"profile"`
}

func Load added in v0.8.0

func Load() (*Settings, error)

func NewDefault

func NewDefault() (*Settings, error)

func (*Settings) GetTheme

func (s *Settings) GetTheme() *huh.Theme

func (*Settings) Hash added in v0.8.0

func (s *Settings) Hash() (string, error)

func (*Settings) Write

func (s *Settings) Write() error

type Templates added in v0.9.0

type Templates struct {
	Protobuf ProtobufTemplates `toml:"protobuf"`
}

type UI

type UI struct {
	Theme      string `toml:"theme"`
	Accessible bool   `toml:"accessible"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳