We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc895da + 5b42b1d commit 32b8a15Copy full SHA for 32b8a15
lib/extract/runCLI.ts
@@ -3,6 +3,16 @@ import { Extractions } from "./Extractions.ts";
3
import { JsonWriter } from "./JsonWriter.ts";
4
import { TypeScriptSourceFile } from "./TypeScriptSourceFile.ts";
5
6
+/**
7
+ * Runs the i18n extraction CLI with the given options.
8
+ * @param options the {@link InitHonolateOptions} for the project
9
+ * @param rootDir the root directory of the project. Usually `import.meta.dirname`.
10
+ *
11
+ * @example Running from the configuration options
12
+ * ```ts
13
+ * import.meta.main && await runCLI(options, import.meta.dirname);
14
+ * ```
15
+ */
16
export async function runCLI({
17
pattern = "**/*.{ts,tsx}",
18
languages,
0 commit comments