action

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Calc added in v0.1.6

func Calc(ctx context.Context, proc *query.Processor, expr string) error

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 CheckUpdate() error

func LaunchInteractiveShell added in v0.8.0

func LaunchInteractiveShell(ctx context.Context, proc *query.Processor) error

func PickVersionNumber added in v1.8.4

func PickVersionNumber(s string) string

func Run added in v0.6.1

func Run(ctx context.Context, proc *query.Processor, input string, sourceFile string, outfile string) error

func ShowFields

func ShowFields(ctx context.Context, proc *query.Processor, filename string) error

func Syntax added in v1.7.2

func Syntax(ctx context.Context, proc *query.Processor, words []string) error

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 GithubReleaseAsset struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

type Version added in v1.8.4

type Version struct {
	Major int
	Minor int
	Patch int
}
var CurrentVersion *Version

func ParseVersion added in v1.8.4

func ParseVersion(s string) (*Version, error)

func (*Version) IsLaterThan added in v1.8.4

func (v *Version) IsLaterThan(v2 *Version) bool

func (*Version) String added in v1.8.4

func (v *Version) String() string

Jump to

Keyboard shortcuts

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