diff --git a/internal/cli/snapshot_publish.go b/internal/cli/snapshot_publish.go index 40aa818..05b9f81 100644 --- a/internal/cli/snapshot_publish.go +++ b/internal/cli/snapshot_publish.go @@ -50,10 +50,10 @@ func publishSnapshot(ctx context.Context, snap *snapshot.Snapshot, explicitSlug var configName, configDesc, visibility string if targetSlug != "" { fmt.Fprintln(os.Stderr) - ui.Info(fmt.Sprintf("Publishing to @%s/%s (updating)", stored.Username, targetSlug)) + fmt.Fprintf(os.Stderr, " Publishing to @%s/%s (updating)\n", stored.Username, targetSlug) } else { fmt.Fprintln(os.Stderr) - ui.Info("Publishing as a new config on openboot.dev") + fmt.Fprintln(os.Stderr, " Publishing as a new config on openboot.dev") configName, configDesc, visibility, err = promptPushDetails("") if err != nil { return err diff --git a/test/e2e/publish_import_e2e_test.go b/test/e2e/publish_import_e2e_test.go index 9b72d4a..1267011 100644 --- a/test/e2e/publish_import_e2e_test.go +++ b/test/e2e/publish_import_e2e_test.go @@ -153,7 +153,8 @@ func runBinary(t *testing.T, binary string, env []string, args ...string) (stdou var outBuf, errBuf strings.Builder cmd.Stdout = &outBuf cmd.Stderr = &errBuf - return outBuf.String(), errBuf.String(), cmd.Run() + err = cmd.Run() + return outBuf.String(), errBuf.String(), err } // ── tests ─────────────────────────────────────────────────────────────────────