pkg

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Organization = "projectdiscovery"

Variables

View Source
var (
	ErrIsInstalled = errors.New("already installed")
	ErrIsUpToDate  = errors.New("already up to date")

	ErrNoAssetFound = "could not find release asset for your platform (%s/%s)"
	ErrToolNotFound = "%s: tool not found in path %s: skipping"
)

Functions

func GithubClient

func GithubClient() *github.Client

func Install

func Install(path string, tool Tool) error

Install installs given tool at path

func Remove

func Remove(path string, tool Tool) error

Remove removes given tool

func Update

func Update(path string, tool Tool) error

Update updates a given tool

Types

type Tool

type Tool struct {
	Name    string            `json:"name"`
	Repo    string            `json:"repo"`
	Version string            `json:"version"`
	Assets  map[string]string `json:"assets"`
}

Directories

Path Synopsis
Package winpath is useful for managing PATH as part of the Environment in the Windows HKey Local User registry.
Package winpath is useful for managing PATH as part of the Environment in the Windows HKey Local User registry.

Jump to

Keyboard shortcuts

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