Documentation
¶
Index ¶
- func Run(config Config) error
- type Config
- type Formula
- func (f *Formula) Revision() string
- func (f *Formula) SHA256() string
- func (f *Formula) Tag() string
- func (f *Formula) URL() string
- func (f *Formula) UpdateRevision(rev string) error
- func (f *Formula) UpdateSHA256(sha string) error
- func (f *Formula) UpdateTag(tag string) error
- func (f *Formula) UpdateURL(url string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Token string
Owner string
Repo string
Path string
Tag string
Revision string
URL string
SHA256 string
CommitMessage string
CommitAuthor string
CommitEmail string
}
Config represents the command line flags passed into the Run function.
type Formula ¶
Formula represents a Homebrew formula that can be updated.
func (*Formula) Revision ¶
Revision returns the value for `:revision => "{{revision}}"` if the formula has one.
func (*Formula) SHA256 ¶
SHA256 returns the value for the `sha256 "{{sha}}"` if the formula has one.
func (*Formula) UpdateRevision ¶
UpdateRevision updates the `:revision => "{{revision}}"` part of a formula.
func (*Formula) UpdateSHA256 ¶
UpdateSHA256 updates the `sha256 "{{sha}}"` part of a formula.
Click to show internal directories.
Click to hide internal directories.