1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Add test for create secret

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2021-10-21 22:02:45 +01:00
parent 48e89b95bb
commit 67b393ce09
17 changed files with 491 additions and 3 deletions

View File

@@ -311,6 +311,7 @@ func executeTemplate(content string, templateValues map[string]string) (string,
// Run the command and return the captured output.
func executeCommand(cmd string) (string, error) {
defer resetCmdArgs()
args, err := shellwords.Parse(cmd)
if err != nil {
return "", err
@@ -329,3 +330,9 @@ func executeCommand(cmd string) (string, error) {
return result, err
}
func resetCmdArgs() {
createArgs = createFlags{}
getArgs = GetFlags{}
secretGitArgs = NewSecretGitFlags()
}