-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
gistLogs.go
26 lines (22 loc) · 1.03 KB
/
gistLogs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var gistLogsCmd = &cobra.Command{
Use: "gist-logs",
Short: "Upload logs for a failed build of <formula> to a new Gist",
GroupID: "main",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(gistLogsCmd).Standalone()
gistLogsCmd.Flags().Bool("debug", false, "Display any debugging information.")
gistLogsCmd.Flags().Bool("help", false, "Show this message.")
gistLogsCmd.Flags().Bool("new-issue", false, "Automatically create a new issue in the appropriate GitHub repository after creating the Gist.")
gistLogsCmd.Flags().Bool("private", false, "The Gist will be marked private and will not appear in listings but will be accessible with its link.")
gistLogsCmd.Flags().Bool("quiet", false, "Make some output more quiet.")
gistLogsCmd.Flags().Bool("verbose", false, "Make some output more verbose.")
gistLogsCmd.Flags().Bool("with-hostname", false, "Include the hostname in the Gist.")
rootCmd.AddCommand(gistLogsCmd)
}