commands

package
v0.0.0-...-8ec1dd0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Package commands contains the CLI commands

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Version: "0.3.0",

	Use:   rootCommandName,
	Short: "A bug tracker embedded in Git",
	Long: `git-bug is a bug tracker embedded in git.

It use the same internal storage so it doesn't pollute your project. As you would do with commits and branches, you can push your bugs 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)
		}
	},

	PersistentPreRunE: loadRepo,

	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