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: 0

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