@teambit/cli 0.0.987 → 0.0.988

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.987" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/cli@0.0.988" 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={36911:(e,t,o)=>{var n={id:"teambit.harmony/cli@0.0.987",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(36911);o(41594);const i=MdxJsReact,s=TeambitMdxUiMdxScopeContext;var c=["components"];function l(){return l=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},l.apply(null,arguments)}var d={},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.includes(n))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.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,i.mdx)(m,l({},d,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})()));
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={55432:(e,t,o)=>{var n={id:"teambit.harmony/cli@0.0.988",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(55432);o(41594);const i=MdxJsReact,s=TeambitMdxUiMdxScopeContext;var c=["components"];function l(){return l=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},l.apply(null,arguments)}var d={},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.includes(n))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.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,i.mdx)(m,l({},d,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})()));
@@ -20,6 +20,7 @@
20
20
  "line": 2,
21
21
  "character": 10
22
22
  },
23
+ "signature": "class CLIParser",
23
24
  "name": "CLIParser",
24
25
  "exportNode": {
25
26
  "__schema": "ClassSchema",
@@ -210,6 +211,7 @@
210
211
  "line": 3,
211
212
  "character": 15
212
213
  },
214
+ "signature": "class CLIMain",
213
215
  "name": "CLIMain",
214
216
  "exportNode": {
215
217
  "__schema": "ClassSchema",
@@ -1137,6 +1139,7 @@
1137
1139
  "line": 3,
1138
1140
  "character": 24
1139
1141
  },
1142
+ "signature": "type CommandList = Command[]",
1140
1143
  "name": "CommandList",
1141
1144
  "exportNode": {
1142
1145
  "__schema": "TypeSchema",
@@ -1176,6 +1179,7 @@
1176
1179
  "line": 3,
1177
1180
  "character": 37
1178
1181
  },
1182
+ "signature": "type CommandsSlot = SlotRegistry<CommandList>",
1179
1183
  "name": "CommandsSlot",
1180
1184
  "exportNode": {
1181
1185
  "__schema": "TypeSchema",
@@ -1215,6 +1219,7 @@
1215
1219
  "line": 4,
1216
1220
  "character": 10
1217
1221
  },
1222
+ "signature": "function handleUnhandledRejection(err: Error | null | undefined | {}): Promise<void>",
1218
1223
  "name": "handleUnhandledRejection",
1219
1224
  "exportNode": {
1220
1225
  "__schema": "FunctionLikeSchema",
@@ -1306,6 +1311,7 @@
1306
1311
  "line": 4,
1307
1312
  "character": 36
1308
1313
  },
1314
+ "signature": "function handleErrorAndExit(err: Error, commandName: string): Promise<void>",
1309
1315
  "name": "handleErrorAndExit",
1310
1316
  "exportNode": {
1311
1317
  "__schema": "FunctionLikeSchema",
@@ -1391,6 +1397,7 @@
1391
1397
  "line": 4,
1392
1398
  "character": 56
1393
1399
  },
1400
+ "signature": "function setExitOnUnhandledRejection(exit: boolean): void",
1394
1401
  "name": "setExitOnUnhandledRejection",
1395
1402
  "exportNode": {
1396
1403
  "__schema": "FunctionLikeSchema",
@@ -1444,16 +1451,16 @@
1444
1451
  "line": 5,
1445
1452
  "character": 15
1446
1453
  },
1454
+ "signature": "export { Command };\n\nCommand",
1447
1455
  "name": "Command",
1448
1456
  "exportNode": {
1449
- "__schema": "TypeRefSchema",
1457
+ "__schema": "UnresolvedSchema",
1450
1458
  "location": {
1451
1459
  "filePath": "index.ts",
1452
1460
  "line": 5,
1453
1461
  "character": 15
1454
1462
  },
1455
- "name": "Command",
1456
- "packageName": "@teambit/legacy/dist/cli/command"
1463
+ "name": "Command"
1457
1464
  }
1458
1465
  },
1459
1466
  {
@@ -1463,16 +1470,16 @@
1463
1470
  "line": 5,
1464
1471
  "character": 24
1465
1472
  },
1473
+ "signature": "export { CLIArgs };\n\nCLIArgs",
1466
1474
  "name": "CLIArgs",
1467
1475
  "exportNode": {
1468
- "__schema": "TypeRefSchema",
1476
+ "__schema": "UnresolvedSchema",
1469
1477
  "location": {
1470
1478
  "filePath": "index.ts",
1471
1479
  "line": 5,
1472
1480
  "character": 24
1473
1481
  },
1474
- "name": "CLIArgs",
1475
- "packageName": "@teambit/legacy/dist/cli/command"
1482
+ "name": "CLIArgs"
1476
1483
  }
1477
1484
  },
1478
1485
  {
@@ -1482,16 +1489,16 @@
1482
1489
  "line": 5,
1483
1490
  "character": 33
1484
1491
  },
1492
+ "signature": "export { Flags };\n\nFlags",
1485
1493
  "name": "Flags",
1486
1494
  "exportNode": {
1487
- "__schema": "TypeRefSchema",
1495
+ "__schema": "UnresolvedSchema",
1488
1496
  "location": {
1489
1497
  "filePath": "index.ts",
1490
1498
  "line": 5,
1491
1499
  "character": 33
1492
1500
  },
1493
- "name": "Flags",
1494
- "packageName": "@teambit/legacy/dist/cli/command"
1501
+ "name": "Flags"
1495
1502
  }
1496
1503
  },
1497
1504
  {
@@ -1501,16 +1508,16 @@
1501
1508
  "line": 5,
1502
1509
  "character": 40
1503
1510
  },
1511
+ "signature": "export { GenericObject };\n\nGenericObject",
1504
1512
  "name": "GenericObject",
1505
1513
  "exportNode": {
1506
- "__schema": "TypeRefSchema",
1514
+ "__schema": "UnresolvedSchema",
1507
1515
  "location": {
1508
1516
  "filePath": "index.ts",
1509
1517
  "line": 5,
1510
1518
  "character": 40
1511
1519
  },
1512
- "name": "GenericObject",
1513
- "packageName": "@teambit/legacy/dist/cli/command"
1520
+ "name": "GenericObject"
1514
1521
  }
1515
1522
  },
1516
1523
  {
@@ -1520,16 +1527,16 @@
1520
1527
  "line": 5,
1521
1528
  "character": 55
1522
1529
  },
1530
+ "signature": "export { CommandOptions };\n\nCommandOptions",
1523
1531
  "name": "CommandOptions",
1524
1532
  "exportNode": {
1525
- "__schema": "TypeRefSchema",
1533
+ "__schema": "UnresolvedSchema",
1526
1534
  "location": {
1527
1535
  "filePath": "index.ts",
1528
1536
  "line": 5,
1529
1537
  "character": 55
1530
1538
  },
1531
- "name": "CommandOptions",
1532
- "packageName": "@teambit/legacy/dist/cli/command"
1539
+ "name": "CommandOptions"
1533
1540
  }
1534
1541
  },
1535
1542
  {
@@ -1539,6 +1546,7 @@
1539
1546
  "line": 1,
1540
1547
  "character": 10
1541
1548
  },
1549
+ "signature": "class AlreadyExistsError",
1542
1550
  "name": "AlreadyExistsError",
1543
1551
  "exportNode": {
1544
1552
  "__schema": "ClassSchema",
@@ -1635,7 +1643,7 @@
1635
1643
  "_legacy": {
1636
1644
  "scope": "teambit.harmony",
1637
1645
  "name": "cli",
1638
- "version": "0.0.987"
1646
+ "version": "0.0.988"
1639
1647
  },
1640
1648
  "_scope": "teambit.harmony"
1641
1649
  }
@@ -1652,6 +1660,7 @@
1652
1660
  "line": 2,
1653
1661
  "character": 10
1654
1662
  },
1663
+ "signature": "class YargsExitWorkaround",
1655
1664
  "name": "YargsExitWorkaround",
1656
1665
  "exportNode": {
1657
1666
  "__schema": "ClassSchema",
@@ -1748,7 +1757,7 @@
1748
1757
  "_legacy": {
1749
1758
  "scope": "teambit.harmony",
1750
1759
  "name": "cli",
1751
- "version": "0.0.987"
1760
+ "version": "0.0.988"
1752
1761
  },
1753
1762
  "_scope": "teambit.harmony"
1754
1763
  }
@@ -1765,6 +1774,7 @@
1765
1774
  "line": 8,
1766
1775
  "character": 23
1767
1776
  },
1777
+ "signature": "const CLIAspect: Aspect",
1768
1778
  "name": "CLIAspect",
1769
1779
  "exportNode": {
1770
1780
  "__schema": "VariableLikeSchema",
@@ -1801,6 +1811,7 @@
1801
1811
  "line": 8,
1802
1812
  "character": 32
1803
1813
  },
1814
+ "signature": "const MainRuntime: RuntimeDefinition",
1804
1815
  "name": "MainRuntime",
1805
1816
  "exportNode": {
1806
1817
  "__schema": "VariableLikeSchema",
@@ -1836,6 +1847,7 @@
1836
1847
  "line": 8,
1837
1848
  "character": 45
1838
1849
  },
1850
+ "signature": "const CLIAspect: Aspect",
1839
1851
  "name": "CLIAspect",
1840
1852
  "exportNode": {
1841
1853
  "__schema": "VariableLikeSchema",
@@ -3623,7 +3635,7 @@
3623
3635
  "componentId": {
3624
3636
  "scope": "teambit.harmony",
3625
3637
  "name": "cli",
3626
- "version": "0.0.987"
3638
+ "version": "0.0.988"
3627
3639
  },
3628
3640
  "taggedModuleExports": []
3629
3641
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.987/dist/cli.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.987/dist/cli.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.988/dist/cli.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.988/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.987",
3
+ "version": "0.0.988",
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.987"
9
+ "version": "0.0.988"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -18,9 +18,9 @@
18
18
  "@teambit/harmony": "0.4.6",
19
19
  "@teambit/bit-error": "0.0.404",
20
20
  "@teambit/bit.get-bit-version": "0.0.1",
21
- "@teambit/host-initializer": "0.0.123",
22
- "@teambit/logger": "0.0.1080",
23
- "@teambit/legacy.analytics": "0.0.35"
21
+ "@teambit/host-initializer": "0.0.124",
22
+ "@teambit/logger": "0.0.1081",
23
+ "@teambit/legacy.analytics": "0.0.36"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/didyoumean": "1.2.0",