Skip to content

Commit

Permalink
Annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoConstantine committed Jul 1, 2024
1 parent cde122d commit a950b27
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/commands/install/homebrew/homebrew.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ func NewCmdHomeBrew(iostream *iostreams.IOStreams) *cobra.Command {
Use: "install homebrew",
Short: cs.GreenBold("Install homebrew, require admin privileges, make sure enable this via privileges app"),
// Long: actionsExplainer(cs),
//GroupID: "install",
Hidden: true,
SilenceErrors: true,
Annotations: map[string]string{
"group": "install",
},
RunE: func(cmd *cobra.Command, args []string) error {
if IsHomebrewInstalled() {
fmt.Println("Homebrew is installed.")
Expand Down
3 changes: 3 additions & 0 deletions pkg/commands/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ func NewInstallCmd(iostream *iostreams.IOStreams) *cobra.Command {
Use: "install",
Short: "Install software",
Long: `All software installation commands.`,
Annotations: map[string]string{
"group": "install",
},
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 { // No specific subcommand was provided
fmt.Fprintln(iostream.Out, cs.GreenBold("Running all installation subcommands..."))
Expand Down
4 changes: 3 additions & 1 deletion pkg/commands/install/xcode/xcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func NewCmdXcode(iostream *iostreams.IOStreams) *cobra.Command {
Short: cs.GreenBold("Install xcode"),
// Long: actionsExplainer(cs),
Hidden: true,
//GroupID: "install",
Annotations: map[string]string{
"group": "install",
},
SilenceErrors: true,
RunE: func(cmd *cobra.Command, args []string) error {
if isXcodeAlreadyInstalled() {
Expand Down

0 comments on commit a950b27

Please sign in to comment.