Documentation
¶
Index ¶
- Variables
- func Calc(ctx context.Context, proc *query.Processor, expr string) error
- func CheckForUpdates(includePreRelease bool, client GithubClient, goos string, goarch string) (string, error)
- func CheckUpdate(includePreRelaese bool) error
- func LaunchInteractiveShell(ctx context.Context, proc *query.Processor) error
- func PickVersionNumber(s string) string
- func Run(ctx context.Context, proc *query.Processor, input string, sourceFile string, ...) error
- func ShowFields(ctx context.Context, proc *query.Processor, filename string) error
- func Syntax(ctx context.Context, proc *query.Processor, words []string) error
- type Client
- type GithubClient
- type GithubRelease
- type GithubReleaseAsset
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentVersion = &Version{}
Functions ¶
func CheckForUpdates ¶
func CheckUpdate ¶
func LaunchInteractiveShell ¶
func PickVersionNumber ¶
func ShowFields ¶
Types ¶
type Client ¶
type Client struct{}
func (Client) GetLatestRelease ¶
func (c Client) GetLatestRelease() (*GithubRelease, error)
func (Client) GetLatestReleaseIncludingPreRelease ¶
func (c Client) GetLatestReleaseIncludingPreRelease() (*GithubRelease, error)
type GithubClient ¶
type GithubClient interface {
GetLatestRelease() (*GithubRelease, error)
GetLatestReleaseIncludingPreRelease() (*GithubRelease, error)
}
func NewClient ¶
func NewClient() GithubClient
type GithubRelease ¶
type GithubRelease struct {
HTMLURL string `json:"html_url"`
TagName string `json:"tag_name"`
PublishedAt string `json:"published_at"`
Assets []GithubReleaseAsset `json:"assets"`
}
type GithubReleaseAsset ¶
Click to show internal directories.
Click to hide internal directories.