From d48f36ca2bf2acc085c65773f1ee39bb283ad5be Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Fri, 21 Mar 2025 12:44:25 -0400 Subject: [PATCH] `export workflow --output json` returns "nul" as output When running the `export workflow ...` command using the `--output json` command line option, the application will return "null" to stdout. This only happens when using the `--output json` flag (or if the default output is set to `json`). This fix will now return the actual workflow object to stdout. fixes #81 --- internal/runners/workflows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/runners/workflows.go b/internal/runners/workflows.go index 544d74ff..9bdfaf01 100644 --- a/internal/runners/workflows.go +++ b/internal/runners/workflows.go @@ -290,6 +290,7 @@ func (r *WorkflowRunner) Export(in Request) (*Response, error) { return NewResponse( fmt.Sprintf("Successfully exported workflow `%s`", workflow.Name), + WithObject(workflow), ), nil }