@aristobyte-ui/cli 2.6.1 → 2.8.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.
Files changed (76) hide show
  1. package/es/.tsbuildinfo +1 -0
  2. package/es/commands/add.d.ts +1 -0
  3. package/es/commands/add.js +106 -0
  4. package/es/commands/doctor.d.ts +1 -0
  5. package/es/commands/doctor.js +166 -0
  6. package/es/commands/env.d.ts +1 -0
  7. package/es/commands/env.js +175 -0
  8. package/es/commands/init.d.ts +1 -0
  9. package/es/commands/init.js +180 -0
  10. package/es/commands/list.d.ts +2 -0
  11. package/es/commands/list.js +195 -0
  12. package/es/commands/remove.d.ts +1 -0
  13. package/es/commands/remove.js +100 -0
  14. package/es/commands/upgrade.d.ts +1 -0
  15. package/es/commands/upgrade.js +122 -0
  16. package/es/index.d.ts +2 -0
  17. package/es/index.js +212 -0
  18. package/es/utils/checkVersion.d.ts +1 -0
  19. package/es/utils/checkVersion.js +8 -0
  20. package/es/utils/colors.d.ts +14 -0
  21. package/es/utils/colors.js +77 -0
  22. package/es/utils/compareVersions.d.ts +1 -0
  23. package/es/utils/compareVersions.js +11 -0
  24. package/es/utils/getBanner.d.ts +1 -0
  25. package/es/utils/getBanner.js +30 -0
  26. package/es/utils/getCurrentPackageManager.d.ts +2 -0
  27. package/es/utils/getCurrentPackageManager.js +55 -0
  28. package/es/utils/getDescription.d.ts +1 -0
  29. package/es/utils/getDescription.js +21 -0
  30. package/es/utils/getTip.d.ts +1 -0
  31. package/es/utils/getTip.js +21 -0
  32. package/es/utils/installPackage.d.ts +1 -0
  33. package/es/utils/installPackage.js +75 -0
  34. package/es/utils/parseHelp.d.ts +2 -0
  35. package/es/utils/parseHelp.js +22 -0
  36. package/es/utils/typography.d.ts +2 -0
  37. package/es/utils/typography.js +9 -0
  38. package/lib/.tsbuildinfo +1 -0
  39. package/lib/commands/add.d.ts +1 -0
  40. package/lib/commands/add.js +112 -0
  41. package/lib/commands/doctor.d.ts +1 -0
  42. package/lib/commands/doctor.js +172 -0
  43. package/lib/commands/env.d.ts +1 -0
  44. package/lib/commands/env.js +181 -0
  45. package/lib/commands/init.d.ts +1 -0
  46. package/lib/commands/init.js +186 -0
  47. package/lib/commands/list.d.ts +2 -0
  48. package/lib/commands/list.js +202 -0
  49. package/lib/commands/remove.d.ts +1 -0
  50. package/lib/commands/remove.js +106 -0
  51. package/lib/commands/upgrade.d.ts +1 -0
  52. package/lib/commands/upgrade.js +128 -0
  53. package/lib/index.d.ts +2 -0
  54. package/lib/index.js +217 -0
  55. package/lib/utils/checkVersion.d.ts +1 -0
  56. package/lib/utils/checkVersion.js +14 -0
  57. package/lib/utils/colors.d.ts +14 -0
  58. package/lib/utils/colors.js +96 -0
  59. package/lib/utils/compareVersions.d.ts +1 -0
  60. package/lib/utils/compareVersions.js +14 -0
  61. package/lib/utils/getBanner.d.ts +1 -0
  62. package/lib/utils/getBanner.js +33 -0
  63. package/lib/utils/getCurrentPackageManager.d.ts +2 -0
  64. package/lib/utils/getCurrentPackageManager.js +61 -0
  65. package/lib/utils/getDescription.d.ts +1 -0
  66. package/lib/utils/getDescription.js +24 -0
  67. package/lib/utils/getTip.d.ts +1 -0
  68. package/lib/utils/getTip.js +24 -0
  69. package/lib/utils/installPackage.d.ts +1 -0
  70. package/lib/utils/installPackage.js +78 -0
  71. package/lib/utils/parseHelp.d.ts +2 -0
  72. package/lib/utils/parseHelp.js +25 -0
  73. package/lib/utils/typography.d.ts +2 -0
  74. package/lib/utils/typography.js +13 -0
  75. package/package.json +1 -1
  76. package/README.md +0 -11
@@ -0,0 +1,25 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ export declare function usage(params: string[]): string;
2
+ export declare function description(text: string): string;
@@ -0,0 +1,13 @@
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
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aristobyte-ui/cli",
3
3
  "description": "The official AristoByteUI CLI — initialize projects, install, upgrade, remove, and manage UI components seamlessly.",
4
- "version": "2.6.1",
4
+ "version": "2.8.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "author": "AristoByte <info@aristobyte.com>",
package/README.md DELETED
@@ -1,11 +0,0 @@
1
- # AristoByteUI CLI
2
-
3
- Install and manage AristoByteUI components easily.
4
-
5
- ## Installation
6
-
7
- Globally:
8
-
9
- ```bash
10
- npm install -g aristobyte-cli
11
- ```