Documentation
¶
Index ¶
- Constants
- Variables
- type Formula
- func (f Formula) AddUser(u string) Formula
- func (f Formula) GetCaveatReport() (results map[string]string)
- func (formula Formula) GetCellar() string
- func (f Formula) GetDepReport(allf Formulas) (results map[string]string)
- func (formula Formula) GetVersion() string
- func (formula Formula) Installable() bool
- func (formula Formula) Installed() bool
- func (formula Formula) Out() (out string)
- func (formula Formula) Pin() (e error)
- func (formula Formula) Unpin() (e error)
- type Formulas
- func (allf Formulas) Filter(fn func(item Formula) bool) Formulas
- func (allf Formulas) FindDeps(names []string, common bool) (result []string)
- func (allf Formulas) FindUsers(names []string, recursive bool) (result []string)
- func (allf Formulas) GetDepStr(depList []string) (result string)
- func (allf *Formulas) Load(json_path string) error
- func (allf Formulas) Ls()
- func (allf Formulas) MkStrList() (list console.FancyStrSlice)
- func (allf Formulas) Subset(l []string) Formulas
Constants ¶
View Source
const ( RUN = iota BUILD RECOMMENDED OPTIONAL INSTALLED OUTDATED MISSING )
Various formula-related enumerations
Variables ¶
View Source
var StatusMap = map[int]string{
INSTALLED: " ✓",
OUTDATED: " ✗",
}
Functions ¶
This section is empty.
Types ¶
type Formula ¶
type Formula struct { Name string `json:"name"` FullName string `json:"full_name"` Oldname string `json:"oldname"` Aliases []string `json:"aliases"` VersionedFormulae []string `json:"versioned_formulae"` Desc string `json:"desc"` Homepage string `json:"homepage"` Versions struct { Stable string `json:"stable"` Bottle bool `json:"bottle"` } `json:"versions"` Revision int `json:"revision"` VersionScheme int `json:"version_scheme"` Bottle struct { Stable struct { Rebuild int `json:"rebuild"` Cellar string `json:"cellar"` Prefix string `json:"prefix"` RootURL string `json:"root_url"` URL string `json:"-"` Sha256 string `json:"-"` Files struct { Catalina struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"catalina,omitempty"` Mojave struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"mojave,omitempty"` HighSierra struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"high_sierra,omitempty"` Sierra struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"sierra,omitempty"` ElCapitan struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"el_capitan,omitempty"` Yosemite struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"yosemite,omitempty"` Mavericks struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"mavericks,omitempty"` Linux64 struct { URL string `json:"url"` Sha256 string `json:"sha256"` } `json:"x86_64_linux,omitempty"` } `json:"files"` } `json:"stable"` } `json:"bottle,omitempty"` KegOnly bool `json:"keg_only"` BottleDisabled bool `json:"bottle_disabled"` Options []string `json:"options"` BuildDependencies []string `json:"build_dependencies"` Dependencies []string `json:"dependencies"` RecommendedDependencies []string `json:"recommended_dependencies"` OptionalDependencies []string `json:"optional_dependencies"` UsesFromMacos []string `json:"uses_from_macos"` Requirements []string `json:"requirements"` ConflictsWith []string `json:"conflicts_with"` Caveats string `json:"caveats"` Status int `json:"-"` InstallDir string `json:"-"` InstallTime string `json:"-"` Pinned bool `json:"-"` Leaf bool `json:"-"` Users []string `json:"-"` }
func (Formula) GetCaveatReport ¶
func (Formula) GetDepReport ¶
func (Formula) GetVersion ¶
func (Formula) Installable ¶
Click to show internal directories.
Click to hide internal directories.