Skip to content

Commit 97c041e

Browse files
committed
fix(cli): open docs page
1 parent 451da04 commit 97c041e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/cli/cmd/init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { getConfig, saveConfig } from "../utils/config";
44
import { defaultConfig, LocaleCode, resolveLocaleCode, bucketTypes } from "@lingo.dev/_spec";
55
import fs from "fs";
66
import path from "path";
7-
import { spawn } from "child_process";
87
import _ from "lodash";
98
import { checkbox, confirm, input } from "@inquirer/prompts";
109
import { login } from "./auth";
@@ -14,10 +13,11 @@ import findLocaleFiles from "../utils/find-locale-paths";
1413
import { ensurePatterns } from "../utils/ensure-patterns";
1514
import updateGitignore from "../utils/update-gitignore";
1615
import initCICD from "../utils/init-ci-cd";
16+
import open from "open";
1717

1818
const openUrl = (path: string) => {
1919
const settings = getSettings(undefined);
20-
spawn("open", [`${settings.auth.webUrl}${path}`]);
20+
open(`${settings.auth.webUrl}${path}`, { wait: false });
2121
};
2222

2323
const throwHelpError = (option: string, value: string) => {

0 commit comments

Comments
 (0)