Documentation ¶
Overview ¶
Copyright © 2023 bright.ma <bright.ma@magesfc.com>
Copyright © 2023 bright.ma <bright.ma@magesfc.com>
Copyright © 2023 bright.ma <bright.ma@magesfc.com>
Copyright © 2023 bright.ma <bright.ma@magesfc.com>
Index ¶
- Variables
- func CaptureCommand(name string, subname string, args ...string) (string, error)
- func Error(cmd *cobra.Command, args []string, err error)
- func Execute()
- func ExecuteCommand(name string, subname string, args ...string) (string, error)
- func ParseOutput(output string)
- type BranchOption
- type RemoteOption
Constants ¶
This section is empty.
Variables ¶
View Source
var Branch string
View Source
var Carbon string
View Source
var Commit = "not specified"
View Source
var Edit bool
View Source
var Label string
View Source
var Message string
View Source
var NoPublishComments bool
View Source
var Private bool
View Source
var PublishComments bool
View Source
var Ready bool
View Source
var RefsHeads bool
View Source
var RemovePrivate bool
View Source
var Reviewer string
View Source
var Topic string
View Source
var Version = "not specified"
VERSION go build -ldflags "-X cmd.VERSION=x.x.x"
View Source
var Wip bool
Functions ¶
func CaptureCommand ¶
Capture output but also show progress #3 https://blog.kowalczyk.info/article/wOYk/advanced-command-execution-in-go-with-osexec.html
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ExecuteCommand ¶
func ParseOutput ¶
func ParseOutput(output string)
Types ¶
type BranchOption ¶
type RemoteOption ¶
Click to show internal directories.
Click to hide internal directories.