bugreports

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package bugreports provides the cobra-cli command for managing multiple bugreports.

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "bugreports",
	Aliases: []string{"bugreport", "reports", "report"},
	Short:   "Manage your bugreports",
	Long: `Manage the bugreports dinkel generated.
With this command you can easily rerun, regenerate, delete or edit the names of the generated bugreports.`,
	Run: func(cmd *cobra.Command, args []string) {
		bugreportsDir, err := cmd.Flags().GetString("bugreports")
		if err != nil {
			logrus.Errorf("Failed to get location of bugreports - %v", err)
			os.Exit(1)
		}

		p := tea.NewProgram(createInspectModel(bugreportsDir), tea.WithAltScreen())
		if _, err := p.Run(); err != nil {
			logrus.Errorf("Bugreports command failed - %v", err)
			os.Exit(1)
		}
	},
}

Cmd for managing the bugreports

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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