utils

package
v0.9.24 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitClone

func GitClone(repoUrl string, targetDir string) error

func GitPull added in v0.6.1

func GitPull(localDir string) error

func LookupInt added in v0.6.1

func LookupInt(key string, fallback int) int

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

Types

type GithubGist added in v0.9.23

type GithubGist struct {
	Description string `json:"description"`
}

func FetchGithubGist added in v0.9.23

func FetchGithubGist(rawGistUrl string) (*GithubGist, error)

type GithubRepo added in v0.6.1

type GithubRepo struct {
	Name            string
	FullName        string `json:"full_name"`
	Description     string
	HtmlUrl         string `json:"html_url"`
	StargazersCount int    `json:"stargazers_count"`
}

func FetchGithubRepository added in v0.9.23

func FetchGithubRepository(repoUrl string) (*GithubRepo, error)

func SearchSunbeamExtensions added in v0.6.1

func SearchSunbeamExtensions(query string) ([]GithubRepo, error)

type Release added in v0.9.0

type Release struct {
	TagName string `json:"tag_name"`
}

func GetLatestRelease added in v0.9.0

func GetLatestRelease(repoUrl string) (*Release, error)

type SearchBody added in v0.6.1

type SearchBody struct {
	Items []GithubRepo
}

Jump to

Keyboard shortcuts

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