commands

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: GPL-3.0 Imports: 43 Imported by: 1

Documentation

Overview

Package commands contains the CLI commands

Index

Constants

This section is empty.

Variables

View Source
var GitCommit string

These variables are initialized externally during the build. See the Makefile.

View Source
var GitExactTag string
View Source
var GitLastTag string
View Source
var RootCmd = &cobra.Command{
	Use:   rootCommandName,
	Short: "A bug tracker embedded in Git.",
	Long: `git-bug is a bug tracker embedded in git.

git-bug use git objects to store the bug tracking separated from the files
history. As bugs are regular git objects, they can be pushed and pulled from/to
the same git remote your are already using to collaborate with other peoples.

`,

	Run: func(cmd *cobra.Command, args []string) {
		if err := cmd.Help(); err != nil {
			os.Exit(1)
		}
	},

	SilenceUsage:      true,
	DisableAutoGenTag: true,

	BashCompletionFunction: `
_git_bug() {
    __start_git-bug "$@"
}
`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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