cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: GPL-3.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "releasetool",
	Short: "Tool to create github releases for easy updating",
}

RootCmd represents the base command when called without any subcommands

View Source
var Version = "v0.0.0"

Functions

func Execute

func Execute()

Types

type GitHub

type GitHub struct {
	ReleaseId int
	// contains filtered or unexported fields
}

func NewGitHubClient

func NewGitHubClient(user, repo, token string) *GitHub

func (*GitHub) CreateRelease

func (g *GitHub) CreateRelease(release *github.RepositoryRelease) error

func (*GitHub) UploadAsset

func (g *GitHub) UploadAsset(filename string, data []byte) error

Jump to

Keyboard shortcuts

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