@teambit/cli 0.0.886 → 0.0.888
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.harmony/cli@0.0.
|
|
3
|
+
<testsuite name="teambit.harmony/cli@0.0.888" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/cli-preview"]=t():e["teambit.harmony/cli-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/cli-preview"]=t():e["teambit.harmony/cli-preview"]=t()}(self,(()=>(()=>{"use strict";var e={47537:(e,t,o)=>{var n={id:"teambit.harmony/cli@0.0.888",homepage:"https://bit.cloud/teambit/harmony/cli",exported:!0};function r(){const e=a(o(41594));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,a.__bit_component=n;const i=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/cli.svg"}));i.__bit_component=n,t.Logo=i},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>u,compositions_metadata:()=>y,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>p});var a=o(47537);o(41594);const i=MdxJsReact,s=TeambitMdxUiMdxScopeContext;var c=["components"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d.apply(null,arguments)}var l={},m="wrapper";function p(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,i.mdx)(m,d({},l,o,{components:t,mdxType:"MDXLayout"}),(0,i.mdx)(s.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,i.mdx)("p",null,"CLI Aspect manages the commands in the CLI. New commands are registered to this aspect with the necessary data such as, command-name, description and flags. Parsing the args from the CLI is done by Commander package."),(0,i.mdx)("h2",null,"Features"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},"Allow to register new commands"),(0,i.mdx)("li",{parentName:"ul"},"Use commander commands."),(0,i.mdx)("li",{parentName:"ul"},"Render to stdout as string or as a React component by Ink."))))}p.isMDXComponent=!0;const u=[a],f=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -197,7 +197,8 @@
|
|
|
197
197
|
"character": 3
|
|
198
198
|
},
|
|
199
199
|
"raw": "/**\n * registers a new command in to the CLI.\n */",
|
|
200
|
-
"comment": "registers a new command in to the CLI."
|
|
200
|
+
"comment": "registers a new command in to the CLI.",
|
|
201
|
+
"tags": []
|
|
201
202
|
},
|
|
202
203
|
"signature": "(method) CLIMain.register(...commands: CommandList): void",
|
|
203
204
|
"name": "register",
|
|
@@ -249,7 +250,8 @@
|
|
|
249
250
|
"character": 3
|
|
250
251
|
},
|
|
251
252
|
"raw": "/**\n * helpful for having the same command name in different environments (e.g. legacy and non-legacy).\n * for example `cli.unregister('tag');` removes the \"bit tag\" command.\n */",
|
|
252
|
-
"comment": "helpful for having the same command name in different environments (e.g. legacy and non-legacy).\nfor example `cli.unregister('tag');` removes the \"bit tag\" command."
|
|
253
|
+
"comment": "helpful for having the same command name in different environments (e.g. legacy and non-legacy).\nfor example `cli.unregister('tag');` removes the \"bit tag\" command.",
|
|
254
|
+
"tags": []
|
|
253
255
|
},
|
|
254
256
|
"signature": "(method) CLIMain.unregister(commandName: string): void",
|
|
255
257
|
"name": "unregister",
|
|
@@ -320,7 +322,8 @@
|
|
|
320
322
|
"character": 3
|
|
321
323
|
},
|
|
322
324
|
"raw": "/**\n * get an instance of a registered command. (useful for aspects to modify and extend existing commands)\n */",
|
|
323
|
-
"comment": "get an instance of a registered command. (useful for aspects to modify and extend existing commands)"
|
|
325
|
+
"comment": "get an instance of a registered command. (useful for aspects to modify and extend existing commands)",
|
|
326
|
+
"tags": []
|
|
324
327
|
},
|
|
325
328
|
"signature": "(method) CLIMain.getCommand(name: string): Command | undefined",
|
|
326
329
|
"name": "getCommand",
|
|
@@ -392,7 +395,8 @@
|
|
|
392
395
|
"character": 3
|
|
393
396
|
},
|
|
394
397
|
"raw": "/**\n * when running `bit help`, commands are grouped by categories.\n * this method helps registering a new group by providing its name and a description.\n * the name is what needs to be assigned to the `group` property of the Command interface.\n * the description is what shown in the `bit help` output.\n */",
|
|
395
|
-
"comment": "when running `bit help`, commands are grouped by categories.\nthis method helps registering a new group by providing its name and a description.\nthe name is what needs to be assigned to the `group` property of the Command interface.\nthe description is what shown in the `bit help` output."
|
|
398
|
+
"comment": "when running `bit help`, commands are grouped by categories.\nthis method helps registering a new group by providing its name and a description.\nthe name is what needs to be assigned to the `group` property of the Command interface.\nthe description is what shown in the `bit help` output.",
|
|
399
|
+
"tags": []
|
|
396
400
|
},
|
|
397
401
|
"signature": "(method) CLIMain.registerGroup(name: string, description: string): void",
|
|
398
402
|
"name": "registerGroup",
|
|
@@ -464,7 +468,8 @@
|
|
|
464
468
|
"character": 3
|
|
465
469
|
},
|
|
466
470
|
"raw": "/**\n * onStart is when bootstrapping the CLI. (it happens before onCommandStart)\n */",
|
|
467
|
-
"comment": "onStart is when bootstrapping the CLI. (it happens before onCommandStart)"
|
|
471
|
+
"comment": "onStart is when bootstrapping the CLI. (it happens before onCommandStart)",
|
|
472
|
+
"tags": []
|
|
468
473
|
},
|
|
469
474
|
"signature": "(method) CLIMain.registerOnStart(onStartFn: OnStart): this",
|
|
470
475
|
"name": "registerOnStart",
|
|
@@ -517,7 +522,8 @@
|
|
|
517
522
|
"character": 3
|
|
518
523
|
},
|
|
519
524
|
"raw": "/**\n * onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\n * already. (it happens after onStart)\n */",
|
|
520
|
-
"comment": "onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\nalready. (it happens after onStart)"
|
|
525
|
+
"comment": "onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\nalready. (it happens after onStart)",
|
|
526
|
+
"tags": []
|
|
521
527
|
},
|
|
522
528
|
"signature": "(method) CLIMain.registerOnCommandStart(onCommandStartFn: OnCommandStart): this",
|
|
523
529
|
"name": "registerOnCommandStart",
|
|
@@ -644,7 +650,8 @@
|
|
|
644
650
|
"character": 3
|
|
645
651
|
},
|
|
646
652
|
"raw": "/**\n * execute commands registered to this aspect.\n */",
|
|
647
|
-
"comment": "execute commands registered to this aspect."
|
|
653
|
+
"comment": "execute commands registered to this aspect.",
|
|
654
|
+
"tags": []
|
|
648
655
|
},
|
|
649
656
|
"signature": "(method) CLIMain.run(hasWorkspace: boolean): Promise<void>",
|
|
650
657
|
"name": "run",
|
|
@@ -1172,7 +1179,7 @@
|
|
|
1172
1179
|
"_legacy": {
|
|
1173
1180
|
"scope": "teambit.harmony",
|
|
1174
1181
|
"name": "cli",
|
|
1175
|
-
"version": "0.0.
|
|
1182
|
+
"version": "0.0.888"
|
|
1176
1183
|
},
|
|
1177
1184
|
"_scope": "teambit.harmony"
|
|
1178
1185
|
}
|
|
@@ -1901,7 +1908,8 @@
|
|
|
1901
1908
|
"character": 3
|
|
1902
1909
|
},
|
|
1903
1910
|
"raw": "/**\n * registers a new command in to the CLI.\n */",
|
|
1904
|
-
"comment": "registers a new command in to the CLI."
|
|
1911
|
+
"comment": "registers a new command in to the CLI.",
|
|
1912
|
+
"tags": []
|
|
1905
1913
|
},
|
|
1906
1914
|
"signature": "(method) CLIMain.register(...commands: CommandList): void",
|
|
1907
1915
|
"name": "register",
|
|
@@ -1953,7 +1961,8 @@
|
|
|
1953
1961
|
"character": 3
|
|
1954
1962
|
},
|
|
1955
1963
|
"raw": "/**\n * helpful for having the same command name in different environments (e.g. legacy and non-legacy).\n * for example `cli.unregister('tag');` removes the \"bit tag\" command.\n */",
|
|
1956
|
-
"comment": "helpful for having the same command name in different environments (e.g. legacy and non-legacy).\nfor example `cli.unregister('tag');` removes the \"bit tag\" command."
|
|
1964
|
+
"comment": "helpful for having the same command name in different environments (e.g. legacy and non-legacy).\nfor example `cli.unregister('tag');` removes the \"bit tag\" command.",
|
|
1965
|
+
"tags": []
|
|
1957
1966
|
},
|
|
1958
1967
|
"signature": "(method) CLIMain.unregister(commandName: string): void",
|
|
1959
1968
|
"name": "unregister",
|
|
@@ -2024,7 +2033,8 @@
|
|
|
2024
2033
|
"character": 3
|
|
2025
2034
|
},
|
|
2026
2035
|
"raw": "/**\n * get an instance of a registered command. (useful for aspects to modify and extend existing commands)\n */",
|
|
2027
|
-
"comment": "get an instance of a registered command. (useful for aspects to modify and extend existing commands)"
|
|
2036
|
+
"comment": "get an instance of a registered command. (useful for aspects to modify and extend existing commands)",
|
|
2037
|
+
"tags": []
|
|
2028
2038
|
},
|
|
2029
2039
|
"signature": "(method) CLIMain.getCommand(name: string): Command | undefined",
|
|
2030
2040
|
"name": "getCommand",
|
|
@@ -2096,7 +2106,8 @@
|
|
|
2096
2106
|
"character": 3
|
|
2097
2107
|
},
|
|
2098
2108
|
"raw": "/**\n * when running `bit help`, commands are grouped by categories.\n * this method helps registering a new group by providing its name and a description.\n * the name is what needs to be assigned to the `group` property of the Command interface.\n * the description is what shown in the `bit help` output.\n */",
|
|
2099
|
-
"comment": "when running `bit help`, commands are grouped by categories.\nthis method helps registering a new group by providing its name and a description.\nthe name is what needs to be assigned to the `group` property of the Command interface.\nthe description is what shown in the `bit help` output."
|
|
2109
|
+
"comment": "when running `bit help`, commands are grouped by categories.\nthis method helps registering a new group by providing its name and a description.\nthe name is what needs to be assigned to the `group` property of the Command interface.\nthe description is what shown in the `bit help` output.",
|
|
2110
|
+
"tags": []
|
|
2100
2111
|
},
|
|
2101
2112
|
"signature": "(method) CLIMain.registerGroup(name: string, description: string): void",
|
|
2102
2113
|
"name": "registerGroup",
|
|
@@ -2168,7 +2179,8 @@
|
|
|
2168
2179
|
"character": 3
|
|
2169
2180
|
},
|
|
2170
2181
|
"raw": "/**\n * onStart is when bootstrapping the CLI. (it happens before onCommandStart)\n */",
|
|
2171
|
-
"comment": "onStart is when bootstrapping the CLI. (it happens before onCommandStart)"
|
|
2182
|
+
"comment": "onStart is when bootstrapping the CLI. (it happens before onCommandStart)",
|
|
2183
|
+
"tags": []
|
|
2172
2184
|
},
|
|
2173
2185
|
"signature": "(method) CLIMain.registerOnStart(onStartFn: OnStart): this",
|
|
2174
2186
|
"name": "registerOnStart",
|
|
@@ -2221,7 +2233,8 @@
|
|
|
2221
2233
|
"character": 3
|
|
2222
2234
|
},
|
|
2223
2235
|
"raw": "/**\n * onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\n * already. (it happens after onStart)\n */",
|
|
2224
|
-
"comment": "onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\nalready. (it happens after onStart)"
|
|
2236
|
+
"comment": "onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\nalready. (it happens after onStart)",
|
|
2237
|
+
"tags": []
|
|
2225
2238
|
},
|
|
2226
2239
|
"signature": "(method) CLIMain.registerOnCommandStart(onCommandStartFn: OnCommandStart): this",
|
|
2227
2240
|
"name": "registerOnCommandStart",
|
|
@@ -2348,7 +2361,8 @@
|
|
|
2348
2361
|
"character": 3
|
|
2349
2362
|
},
|
|
2350
2363
|
"raw": "/**\n * execute commands registered to this aspect.\n */",
|
|
2351
|
-
"comment": "execute commands registered to this aspect."
|
|
2364
|
+
"comment": "execute commands registered to this aspect.",
|
|
2365
|
+
"tags": []
|
|
2352
2366
|
},
|
|
2353
2367
|
"signature": "(method) CLIMain.run(hasWorkspace: boolean): Promise<void>",
|
|
2354
2368
|
"name": "run",
|
|
@@ -2620,7 +2634,8 @@
|
|
|
2620
2634
|
"character": 1
|
|
2621
2635
|
},
|
|
2622
2636
|
"raw": "/**\n * kind of a hack.\n * in the legacy, this is running at the beginning and it take care of issues when Bit files are missing,\n * such as \".bit\".\n * (to make this process better, you can easily remove it and run the e2e-tests. you'll see some failing)\n */",
|
|
2623
|
-
"comment": "kind of a hack.\nin the legacy, this is running at the beginning and it take care of issues when Bit files are missing,\nsuch as \".bit\".\n(to make this process better, you can easily remove it and run the e2e-tests. you'll see some failing)"
|
|
2637
|
+
"comment": "kind of a hack.\nin the legacy, this is running at the beginning and it take care of issues when Bit files are missing,\nsuch as \".bit\".\n(to make this process better, you can easily remove it and run the e2e-tests. you'll see some failing)",
|
|
2638
|
+
"tags": []
|
|
2624
2639
|
},
|
|
2625
2640
|
"signature": "function ensureWorkspaceAndScope(): Promise<void>",
|
|
2626
2641
|
"name": "ensureWorkspaceAndScope",
|
|
@@ -2760,7 +2775,7 @@
|
|
|
2760
2775
|
"componentId": {
|
|
2761
2776
|
"scope": "teambit.harmony",
|
|
2762
2777
|
"name": "cli",
|
|
2763
|
-
"version": "0.0.
|
|
2778
|
+
"version": "0.0.888"
|
|
2764
2779
|
},
|
|
2765
2780
|
"taggedModuleExports": []
|
|
2766
2781
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.888/dist/cli.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.888/dist/cli.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.888",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/cli",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "cli",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.888"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"pad-right": "0.2.2",
|
|
18
18
|
"@teambit/harmony": "0.4.6",
|
|
19
19
|
"@teambit/bit-error": "0.0.404",
|
|
20
|
-
"@teambit/host-initializer": "0.0.
|
|
21
|
-
"@teambit/logger": "0.0.
|
|
20
|
+
"@teambit/host-initializer": "0.0.24",
|
|
21
|
+
"@teambit/logger": "0.0.981"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/didyoumean": "1.2.0",
|