Files
8334da36f2 Bump major version to 3 (#21410)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: crenshaw-dev <[email protected]>
2025-01-10 16:14:00 -05:00

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...)
}