cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = &cobra.Command{
	Use: "gitflow",

	SilenceErrors: true,
	SilenceUsage:  true,

	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		if noColor {
			color.NoColor = true
		}
	},

	CompletionOptions: cobra.CompletionOptions{
		HiddenDefaultCmd: true,
	},
}

Functions

func Add

func Add(base *cobra.Command, sub *cobra.Command) *cobra.Command

func Build

func Build(base *cobra.Command, app *App) *cobra.Command

Types

type App

type App struct {
	Use  string
	Desc string

	Repo *workflow.InitRepo

	Branch *workflow.InitBranch

	Actions []workflow.Action
}

func (*App) Build

func (app *App) Build() *cobra.Command

Jump to

Keyboard shortcuts

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