@midscene/cli 1.6.3-beta-20260402103943.0 → 1.6.3
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/es/index.mjs +17 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/index.js +17 -2
- package/dist/lib/index.js.map +1 -1
- package/package.json +7 -7
package/dist/es/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/*! For license information please see index.mjs.LICENSE.txt */
|
|
2
2
|
import node_path, { basename, dirname, extname, join, posix, relative as external_node_path_relative, resolve as external_node_path_resolve, win32 } from "node:path";
|
|
3
|
+
import { createReportCliCommands } from "@midscene/core";
|
|
4
|
+
import { runToolsCLI } from "@midscene/shared/cli";
|
|
3
5
|
import { ScriptPlayer, interpolateEnvVars, parseYamlScript } from "@midscene/core/yaml";
|
|
4
6
|
import { getMidsceneRunSubDir } from "@midscene/shared/common";
|
|
5
7
|
import { buildChromeArgs, defaultViewportHeight, defaultViewportWidth, puppeteerAgentForTarget } from "@midscene/web/puppeteer-agent-launcher";
|
|
@@ -3022,7 +3024,9 @@ var __webpack_modules__ = {
|
|
|
3022
3024
|
"./src/index.ts" (__unused_rspack_module, __unused_rspack___webpack_exports__, __webpack_require__) {
|
|
3023
3025
|
var main = __webpack_require__("../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js");
|
|
3024
3026
|
var main_default = /*#__PURE__*/ __webpack_require__.n(main);
|
|
3025
|
-
var package_namespaceObject =
|
|
3027
|
+
var package_namespaceObject = {
|
|
3028
|
+
rE: "1.6.3"
|
|
3029
|
+
};
|
|
3026
3030
|
class Node {
|
|
3027
3031
|
value;
|
|
3028
3032
|
next;
|
|
@@ -11961,7 +11965,7 @@ Usage:
|
|
|
11961
11965
|
type: 'boolean',
|
|
11962
11966
|
description: `Turn on logging to help debug why certain keys or values are not being set as you expect, default is ${config_factory_defaultConfig.dotenvDebug}`
|
|
11963
11967
|
}
|
|
11964
|
-
}).version('version', 'Show version number', "1.6.3
|
|
11968
|
+
}).version('version', 'Show version number', "1.6.3").help().epilogue(`For complete list of configuration options, please visit:
|
|
11965
11969
|
• Web options: https://midscenejs.com/automate-with-scripts-in-yaml#the-web-part
|
|
11966
11970
|
• Android options: https://midscenejs.com/automate-with-scripts-in-yaml#the-android-part
|
|
11967
11971
|
• iOS options: https://midscenejs.com/automate-with-scripts-in-yaml#the-ios-part
|
|
@@ -12010,6 +12014,17 @@ Examples:
|
|
|
12010
12014
|
return files.filter((file)=>file.endsWith('.yml') || file.endsWith('.yaml')).sort();
|
|
12011
12015
|
}
|
|
12012
12016
|
Promise.resolve((async ()=>{
|
|
12017
|
+
const rawArgs = process.argv.slice(2);
|
|
12018
|
+
const [firstArg] = rawArgs;
|
|
12019
|
+
if ('report-tool' === firstArg) return void await runToolsCLI({
|
|
12020
|
+
initTools: async ()=>void 0,
|
|
12021
|
+
destroy: async ()=>void 0,
|
|
12022
|
+
getToolDefinitions: ()=>[]
|
|
12023
|
+
}, 'midscene', {
|
|
12024
|
+
argv: rawArgs,
|
|
12025
|
+
version: package_namespaceObject.rE,
|
|
12026
|
+
extraCommands: createReportCliCommands()
|
|
12027
|
+
});
|
|
12013
12028
|
const { options, path, files: cmdFiles } = await parseProcessArgs();
|
|
12014
12029
|
const welcome = `\nWelcome to @midscene/cli v${package_namespaceObject.rE}\n`;
|
|
12015
12030
|
console.log(welcome);
|