cmd

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package cmd defines the Git Town commands.

Index

Constants

This section is empty.

Variables

View Source
var (
	CompletionTypeBash       = CompletionType{"bash"}       //nolint:gochecknoglobals
	CompletionTypeZsh        = CompletionType{"zsh"}        //nolint:gochecknoglobals
	CompletionTypeFish       = CompletionType{"fish"}       //nolint:gochecknoglobals
	CompletionTypePowershell = CompletionType{"powershell"} //nolint:gochecknoglobals
)

Functions

func Execute

func Execute() error

Execute runs the Cobra stack.

Types

type CompletionType

type CompletionType struct {
	// contains filtered or unexported fields
}

CompletionType defines the valid shells for which Git Town can create auto-completions. This is a type-safe enum, see https://npf.io/2022/05/safer-enums.

func NewCompletionType

func NewCompletionType(text string) (CompletionType, error)

func (CompletionType) String

func (self CompletionType) String() string

type ConfigConfig

type ConfigConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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