mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: crenshaw-dev <[email protected]>
16 lines
413 B
Go
16 lines
413 B
Go
package admin
|
|
|
|
import (
|
|
"github.com/argoproj/argo-cd/v3/test/e2e/fixture"
|
|
)
|
|
|
|
// For admin CLI with kubernetes context
|
|
func RunCli(args ...string) (string, error) {
|
|
return RunCliWithStdin("", args...)
|
|
}
|
|
|
|
func RunCliWithStdin(stdin string, args ...string) (string, error) {
|
|
args = append([]string{"admin", "--namespace", fixture.TestNamespace()}, args...)
|
|
return fixture.RunCliWithStdin(stdin, true, args...)
|
|
}
|