@aristobyte-ui/cli 2.13.2 → 2.14.0
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/.tsbuildinfo +1 -0
- package/CHANGELOG.md +229 -0
- package/LICENSE +21 -0
- package/commands/add.js +51 -0
- package/commands/doctor.js +105 -0
- package/commands/env.js +122 -0
- package/commands/init.js +130 -0
- package/commands/list.js +95 -0
- package/commands/remove.js +46 -0
- package/commands/upgrade.js +38 -0
- package/index.js +140 -0
- package/package.json +7 -22
- package/utils/checkVersion.js +8 -0
- package/utils/colors.js +58 -0
- package/{es/utils → utils}/compareVersions.js +3 -3
- package/utils/getBanner.js +92 -0
- package/utils/getCurrentPackageManager.js +16 -0
- package/utils/installPackage.js +27 -0
- package/utils/parseHelp.js +31 -0
- package/utils/typography.js +9 -0
- package/es/.tsbuildinfo +0 -1
- package/es/commands/add.js +0 -106
- package/es/commands/doctor.js +0 -166
- package/es/commands/env.js +0 -175
- package/es/commands/init.js +0 -180
- package/es/commands/list.js +0 -195
- package/es/commands/remove.js +0 -100
- package/es/commands/upgrade.js +0 -122
- package/es/index.js +0 -212
- package/es/utils/checkVersion.js +0 -8
- package/es/utils/colors.js +0 -77
- package/es/utils/getBanner.js +0 -30
- package/es/utils/getCurrentPackageManager.js +0 -55
- package/es/utils/installPackage.js +0 -75
- package/es/utils/parseHelp.js +0 -22
- package/es/utils/typography.js +0 -9
- package/lib/.tsbuildinfo +0 -1
- package/lib/commands/add.d.ts +0 -1
- package/lib/commands/add.js +0 -112
- package/lib/commands/doctor.d.ts +0 -1
- package/lib/commands/doctor.js +0 -172
- package/lib/commands/env.d.ts +0 -1
- package/lib/commands/env.js +0 -181
- package/lib/commands/init.d.ts +0 -1
- package/lib/commands/init.js +0 -186
- package/lib/commands/list.d.ts +0 -2
- package/lib/commands/list.js +0 -202
- package/lib/commands/remove.d.ts +0 -1
- package/lib/commands/remove.js +0 -106
- package/lib/commands/upgrade.d.ts +0 -1
- package/lib/commands/upgrade.js +0 -128
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -217
- package/lib/utils/checkVersion.d.ts +0 -1
- package/lib/utils/checkVersion.js +0 -14
- package/lib/utils/colors.d.ts +0 -14
- package/lib/utils/colors.js +0 -96
- package/lib/utils/compareVersions.d.ts +0 -1
- package/lib/utils/compareVersions.js +0 -14
- package/lib/utils/getBanner.d.ts +0 -1
- package/lib/utils/getBanner.js +0 -33
- package/lib/utils/getCurrentPackageManager.d.ts +0 -2
- package/lib/utils/getCurrentPackageManager.js +0 -61
- package/lib/utils/getDescription.d.ts +0 -1
- package/lib/utils/getDescription.js +0 -24
- package/lib/utils/getTip.d.ts +0 -1
- package/lib/utils/getTip.js +0 -24
- package/lib/utils/installPackage.d.ts +0 -1
- package/lib/utils/installPackage.js +0 -78
- package/lib/utils/parseHelp.d.ts +0 -2
- package/lib/utils/parseHelp.js +0 -25
- package/lib/utils/typography.d.ts +0 -2
- package/lib/utils/typography.js +0 -13
- /package/{es/commands → commands}/add.d.ts +0 -0
- /package/{es/commands → commands}/doctor.d.ts +0 -0
- /package/{es/commands → commands}/env.d.ts +0 -0
- /package/{es/commands → commands}/init.d.ts +0 -0
- /package/{es/commands → commands}/list.d.ts +0 -0
- /package/{es/commands → commands}/remove.d.ts +0 -0
- /package/{es/commands → commands}/upgrade.d.ts +0 -0
- /package/{es/index.d.ts → index.d.ts} +0 -0
- /package/{es/utils → utils}/checkVersion.d.ts +0 -0
- /package/{es/utils → utils}/colors.d.ts +0 -0
- /package/{es/utils → utils}/compareVersions.d.ts +0 -0
- /package/{es/utils → utils}/getBanner.d.ts +0 -0
- /package/{es/utils → utils}/getCurrentPackageManager.d.ts +0 -0
- /package/{es/utils → utils}/getDescription.d.ts +0 -0
- /package/{es/utils → utils}/getDescription.js +0 -0
- /package/{es/utils → utils}/getTip.d.ts +0 -0
- /package/{es/utils → utils}/getTip.js +0 -0
- /package/{es/utils → utils}/installPackage.d.ts +0 -0
- /package/{es/utils → utils}/parseHelp.d.ts +0 -0
- /package/{es/utils → utils}/typography.d.ts +0 -0
package/lib/utils/parseHelp.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseHelp = parseHelp;
|
|
4
|
-
var colors_1 = require("./colors");
|
|
5
|
-
var typography_1 = require("./typography");
|
|
6
|
-
var getBanner_1 = require("./getBanner");
|
|
7
|
-
var getTip_1 = require("./getTip");
|
|
8
|
-
var getDescription_1 = require("./getDescription");
|
|
9
|
-
function parseHelp(cmd, helper) {
|
|
10
|
-
return "\n".concat((0, getBanner_1.getBanner)(cmd.name()), "\n\n").concat((0, colors_1.logoSmallGradient)("Usage:"), " \n").concat((0, colors_1.logo3)(helper.commandUsage(cmd)), "\n\n").concat((0, colors_1.logoSmallGradient)("Description:"), "\n ").concat((0, colors_1.darkGrey)((0, getDescription_1.getDescription)(cmd.name())), "\n\n").concat(helper.visibleCommands(cmd).length > 0
|
|
11
|
-
? "".concat((0, colors_1.logoSmallGradient)("Commands:"), "\n").concat(helper
|
|
12
|
-
.visibleCommands(cmd)
|
|
13
|
-
.map(function (c) {
|
|
14
|
-
return " ".concat("".concat((0, colors_1.logo3)(c.name()).padEnd(31), " ").concat(c.usage() || "".padEnd(30)).padEnd(129), " ").concat((0, typography_1.description)(c.description()));
|
|
15
|
-
})
|
|
16
|
-
.join("\n"), "\n\n")
|
|
17
|
-
: "").concat(helper.visibleOptions(cmd).length > 0
|
|
18
|
-
? "".concat((0, colors_1.logoSmallGradient)("Options:"), "\n").concat(helper
|
|
19
|
-
.visibleOptions(cmd)
|
|
20
|
-
.map(function (option) {
|
|
21
|
-
return " ".concat("".concat((0, colors_1.logo3)(option.flags.split(/,\s*/)[0])).concat((0, colors_1.darkGrey)(", ")).concat((0, colors_1.logo4)(option.flags.split(/,\s*/)[1])).padEnd(93), " ").concat((0, typography_1.description)(option.description));
|
|
22
|
-
})
|
|
23
|
-
.join("\n"), "\n\n")
|
|
24
|
-
: "").concat((0, colors_1.logoSmallGradient)("Tip:"), "\n ").concat((0, colors_1.lightGrey)((0, getTip_1.getTip)(cmd.name())), "\n");
|
|
25
|
-
}
|
package/lib/utils/typography.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usage = usage;
|
|
4
|
-
exports.description = description;
|
|
5
|
-
var colors_1 = require("./colors");
|
|
6
|
-
function usage(params) {
|
|
7
|
-
return params
|
|
8
|
-
.map(function (param) { return "".concat((0, colors_1.logo4)("["), " ").concat((0, colors_1.lightGrey)(param), " ").concat((0, colors_1.logo4)("]")); })
|
|
9
|
-
.join(" ");
|
|
10
|
-
}
|
|
11
|
-
function description(text) {
|
|
12
|
-
return (0, colors_1.darkGrey)("- ".concat(text));
|
|
13
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|