Documentation
¶
Index ¶
- func Calc(proc *query.Processor, expr string) error
- func CheckForUpdates(client GithubClient, goos string, goarch string) (string, error)
- func CheckUpdate(proc *query.Processor) error
- func LaunchInteractiveShell(proc *query.Processor) error
- func PickVersionNumber(s string) string
- func Run(proc *query.Processor, input string, sourceFile string, outfile string) error
- func SetSignalHandler(proc *query.Processor)
- func ShowFields(proc *query.Processor, filename string) error
- func Syntax(proc *query.Processor, words []string) error
- type Client
- type GithubClient
- type GithubRelease
- type GithubReleaseAsset
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdates ¶ added in v1.8.4
func CheckForUpdates(client GithubClient, goos string, goarch string) (string, error)
func CheckUpdate ¶ added in v1.8.4
func LaunchInteractiveShell ¶ added in v0.8.0
func PickVersionNumber ¶ added in v1.8.4
func SetSignalHandler ¶ added in v0.8.0
Types ¶
type Client ¶ added in v1.8.4
type Client struct{}
func (Client) GetLatestRelease ¶ added in v1.8.4
func (c Client) GetLatestRelease() (*GithubRelease, error)
type GithubClient ¶ added in v1.8.4
type GithubClient interface {
GetLatestRelease() (*GithubRelease, error)
}
func NewClient ¶ added in v1.8.4
func NewClient() GithubClient
type GithubRelease ¶ added in v1.8.4
type GithubRelease struct { HTMLURL string `json:"html_url"` TagName string `json:"tag_name"` PublishedAt string `json:"published_at"` Assets []GithubReleaseAsset `json:"assets"` }
type GithubReleaseAsset ¶ added in v1.8.4
type Version ¶ added in v1.8.4
var CurrentVersion *Version
func ParseVersion ¶ added in v1.8.4
func (*Version) IsLaterThan ¶ added in v1.8.4
Click to show internal directories.
Click to hide internal directories.