@flydocs/cli 0.5.0-beta.1 → 0.5.0-beta.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/cli.js +10 -5
- package/package.json +1 -1
- package/template/.flydocs/config.json +1 -1
- package/template/.flydocs/version +1 -1
- package/template/manifest.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var CLI_VERSION, CLI_NAME, PACKAGE_NAME;
|
|
|
15
15
|
var init_constants = __esm({
|
|
16
16
|
"src/lib/constants.ts"() {
|
|
17
17
|
"use strict";
|
|
18
|
-
CLI_VERSION = "0.5.0-beta.
|
|
18
|
+
CLI_VERSION = "0.5.0-beta.3";
|
|
19
19
|
CLI_NAME = "flydocs";
|
|
20
20
|
PACKAGE_NAME = "@flydocs/cli";
|
|
21
21
|
}
|
|
@@ -947,12 +947,14 @@ async function promptCommunitySkills(targetDir, stack, autoYes) {
|
|
|
947
947
|
const options = suggestions.map((s) => ({
|
|
948
948
|
value: s,
|
|
949
949
|
label: s.name,
|
|
950
|
-
hint: s.description
|
|
950
|
+
hint: s.description,
|
|
951
|
+
initialValue: true
|
|
951
952
|
}));
|
|
952
953
|
const result = await multiselect({
|
|
953
|
-
message: "Select community skills to install",
|
|
954
|
+
message: "Select community skills to install (space to toggle, enter to confirm)",
|
|
954
955
|
options,
|
|
955
|
-
required: false
|
|
956
|
+
required: false,
|
|
957
|
+
initialValues: suggestions
|
|
956
958
|
});
|
|
957
959
|
if (isCancel(result)) {
|
|
958
960
|
cancel("Skipped community skills");
|
|
@@ -2640,8 +2642,11 @@ var SUB_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
2640
2642
|
"self-update"
|
|
2641
2643
|
]);
|
|
2642
2644
|
var userArgs = process.argv.slice(2);
|
|
2645
|
+
var hasMetaFlag = userArgs.some(
|
|
2646
|
+
(a) => a === "--version" || a === "--help" || a === "-h"
|
|
2647
|
+
);
|
|
2643
2648
|
var firstPositional = userArgs.find((a) => !a.startsWith("-"));
|
|
2644
|
-
if (!firstPositional || !SUB_COMMANDS.has(firstPositional)) {
|
|
2649
|
+
if (!hasMetaFlag && (!firstPositional || !SUB_COMMANDS.has(firstPositional))) {
|
|
2645
2650
|
process.argv.splice(2, 0, "install");
|
|
2646
2651
|
}
|
|
2647
2652
|
var main = defineCommand8({
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.0-beta.
|
|
1
|
+
0.5.0-beta.3
|
package/template/manifest.json
CHANGED