From 47e6d159d11e5ca132d5fbfcf55987c7a8aa1e6e Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 1 Apr 2025 20:02:25 +0200 Subject: [PATCH] add nushell support to local backend (#5043) --- pipeline/backend/local/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipeline/backend/local/command.go b/pipeline/backend/local/command.go index 917c8ccf3..6a853f904 100644 --- a/pipeline/backend/local/command.go +++ b/pipeline/backend/local/command.go @@ -54,6 +54,8 @@ func (e *local) genCmdByShell(shell string, cmdList []string) (args []string, er script += fmt.Sprintf("echo %s\n%s || exit $status\n", strings.TrimSpace(shellescape.Quote("+ "+cmd)), cmd) } return []string{"-c", script}, nil + case "nu": + return []string{"--commands", script}, nil case "powershell", "pwsh": // cspell:disable-next-line return []string{"-noprofile", "-noninteractive", "-c", "$ErrorActionPreference = \"Stop\"; " + script}, nil