@tenux/cli 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -44,7 +44,7 @@ async function sleep(ms) {
|
|
|
44
44
|
}
|
|
45
45
|
program.command("login").description("Authenticate with Tenux via browser-based device auth").option("--url <url>", "Tenux app URL").action(async (opts) => {
|
|
46
46
|
console.log(chalk.bold("\n tenux"), chalk.dim("desktop agent\n"));
|
|
47
|
-
const appUrl = (opts.url ?? process.env.TENUX_APP_URL ?? "
|
|
47
|
+
const appUrl = (opts.url ?? process.env.TENUX_APP_URL ?? "https://tenux.dev").replace(/\/+$/, "");
|
|
48
48
|
console.log(chalk.dim(" App:"), appUrl);
|
|
49
49
|
const deviceName = hostname();
|
|
50
50
|
const platform = process.platform;
|