cmd

package
v0.0.0-...-64fdae0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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

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 Hashtags string
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

func CaptureCommand(name string, subname string, args ...string) (string, error)

Capture output but also show progress #3 https://blog.kowalczyk.info/article/wOYk/advanced-command-execution-in-go-with-osexec.html

func Error

func Error(cmd *cobra.Command, args []string, err error)

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 ExecuteCommand(name string, subname string, args ...string) (string, error)

func ParseOutput

func ParseOutput(output string)

Types

type BranchOption

type BranchOption struct {
	Name string
	Desc string
}

type RemoteOption

type RemoteOption struct {
	Name string
	URL  string
}

Jump to

Keyboard shortcuts

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