Skip to content

Commit d7b6478

Browse files
authored
fix: dont spam terminal with url for create flow (#68)
1 parent 6306375 commit d7b6478

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ export async function create(
6363
exchangeToken = res.exchangeToken;
6464
}
6565

66+
console.log(`Visit ${url.href} to create a new application.`);
6667
const spinner = new Spinner({
67-
message: `Visit ${url.href} to create a new application.`,
68+
message: "",
6869
color: "yellow",
6970
});
7071
spinner.start();
@@ -108,6 +109,9 @@ export async function create(
108109
]);
109110

110111
spinner.stop();
112+
// clear the previous line, which contains the URL
113+
Deno.stdout.writeSync(new TextEncoder().encode("\x1b[1A\x1b[2K"));
114+
111115
console.log(
112116
`${green("✔")} App '${app}' created in the '${org}' organization.\n`,
113117
);

0 commit comments

Comments
 (0)