config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveVersion added in v0.0.4

func GetActiveVersion() (string, error)

func GetConfigPath

func GetConfigPath() (string, error)

func GetInstalledVersions

func GetInstalledVersions() (map[string]string, error)

GetInstalledVersions returns a map of installed versions where they key is the version and the value is the path to the quarto executable

func GetPathToActiveBinDir

func GetPathToActiveBinDir() string

GetPathToActiveBinDir returns the path to the active version's bin directory if that directory does not exist, it will be created with perms 700

func GetPathToActiveQuartoExe added in v0.0.4

func GetPathToActiveQuartoExe() string

func GetPathToVersionsDir

func GetPathToVersionsDir() string

func GetRootConfigPath

func GetRootConfigPath() string

func GetRootDataPath

func GetRootDataPath() string

Types

type Config

type Config struct {
	DefaultVersion string `yaml:"default_version"`
}

func Read

func Read() (Config, string, error)

func (Config) Validate

func (cfg Config) Validate() error

Jump to

Keyboard shortcuts

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