config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const Version = "1.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Config version
	Version string `json:"version" yaml:"version"`
	// Path to the executable symlinks
	BinDir string `json:"binDir,omitempty" yaml:"binDir,omitempty"`
	// Path to your project taps
	TapDir string `json:"tapDir,omitempty" yaml:"tapDir,omitempty"`
	// Path for the downloaded sources
	TempDir string `json:"tempDir,omitempty" yaml:"tempDir,omitempty"`
	// Path to the versioned executables
	CellarDir string `json:"cellarDir,omitempty" yaml:"cellarDir,omitempty"`
	// List of packages that should be installed
	Packages []Package `json:"packages,omitempty" yaml:"packages,omitempty"`
}

Ownbrew configuration

type Package

type Package struct {
	// Name of the tap
	Tap string `json:"tap" yaml:"tap"`
	// Name of the package
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	// Names of the packages
	Names []string `json:"names,omitempty" yaml:"names,omitempty"`
	// Additional command args
	Args []string `json:"args,omitempty" yaml:"args,omitempty"`
	// Version of the package to install
	Version string `json:"version" yaml:"version"`
	// List of tags
	Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
}

func (Package) AllNames

func (c Package) AllNames() []string

func (Package) String

func (c Package) String() string

func (Package) URL

func (c Package) URL() (string, error)

Jump to

Keyboard shortcuts

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