config

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

func ConfigPath

func ConfigPath() (string, error)

func RCPath

func RCPath() string

Types

type Config

type Config struct {
	ID          string `toml:"client_id" comment:"The $LIBMAN_ID will override this field if set."`
	Secret      string `toml:"client_secret" comment:"The $LIBMAN_SECRET will override this field if set."`
	RedirectURI string `toml:"redirect_uri" comment:"The $LIBMAN_REDIRECT_URI will override this field if set."`
	CacheFile   string `` /* 131-byte string literal not displayed */
	RCFile      string `toml:"libmanrc_path" comment:"The location of the startup script file. $LIBMAN_RC_PATH overrides this field if set."`
	HistFile    string `` /* 132-byte string literal not displayed */
	DataHome    string `` /* 163-byte string literal not displayed */

	HistSize int    `toml:"history_size" comment:"History size, applies to artist/album/track/playlist history independently." default:"66"`
	Prompt   string `toml:"prompt" comment:"The libman shell prompt." default:"@libman>"`

	ConfigPath string `toml:"-"`
}

func DefaultConfig

func DefaultConfig() Config

func Load

func Load(path string) (*Config, error)

func (*Config) Save

func (c *Config) Save(path string) error

Jump to

Keyboard shortcuts

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