-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4363 from andrewhsu/backport-rpk-admin-mac
[v21.11.x] rpk cli missing redpanda on MacOS
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2022 Vectorized, Inc. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.md | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0 | ||
|
||
//go:build darwin | ||
// +build darwin | ||
|
||
package cmd | ||
|
||
import ( | ||
"github.com/spf13/afero" | ||
"github.com/spf13/cobra" | ||
"github.com/vectorizedio/redpanda/src/go/rpk/pkg/cli/cmd/redpanda/admin" | ||
) | ||
|
||
func NewRedpandaDarwinCommand(fs afero.Fs) *cobra.Command { | ||
command := &cobra.Command{ | ||
Use: "redpanda", | ||
Short: "Interact with a local or remote Redpanda process", | ||
} | ||
|
||
command.AddCommand(admin.NewCommand(fs)) | ||
|
||
return command | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters