cmd

package
v0.0.0-...-0ba6643 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3    string = "s3"
	SWIFT string = "swift"
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "upr",
	Short: "Manipulate pull requests on GitHub",
	Long: `A command line tool to manipulate pull requests on Github.
	
This tool is designed to be integrated into a CI implementation
in order to update the Status or add a Comment.`,
}

This represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CommentBody

type CommentBody struct {
	CommitID      string
	Title         string
	Summary       string
	Uploads       map[string][]Upload
	UploadsExpire *time.Time // pointers can be nil, for template conditional
}

func (*CommentBody) PopulateUploads

func (c *CommentBody) PopulateUploads()

Populates the Uploads section of the CommentBody struct

func (*CommentBody) UploadToS3

func (c *CommentBody) UploadToS3()

Upload the files via the S3 API

func (*CommentBody) UploadToSwift

func (c *CommentBody) UploadToSwift()

Upload the files via the Swift API

type Upload

type Upload struct {
	Name string
	Path string
	Obj  string
	URL  string
}

Jump to

Keyboard shortcuts

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