@teambit/cli 0.0.853 → 0.0.855

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.853" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/cli@0.0.855" 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={47588:(e,t,o)=>{var n={id:"teambit.harmony/cli@0.0.853",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={};return(()=>{o.r(n),o.d(n,{compositions:()=>p,compositions_metadata:()=>u,overview:()=>l});var e={};o.r(e),o.d(e,{default:()=>m});var t=o(47588);o(41594);const r=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var i=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(this,arguments)}var c={},d="wrapper";function m(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,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,i);return(0,r.mdx)(d,s({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.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,r.mdx)("h2",null,"Features"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"Allow to register new commands"),(0,r.mdx)("li",{parentName:"ul"},"Use commander commands."),(0,r.mdx)("li",{parentName:"ul"},"Render to stdout as string or as a React component by Ink."))))}m.isMDXComponent=!0;const p=[t],l=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),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={36998:(e,t,o)=>{var n={id:"teambit.harmony/cli@0.0.855",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={};return(()=>{o.r(n),o.d(n,{compositions:()=>p,compositions_metadata:()=>u,overview:()=>l});var e={};o.r(e),o.d(e,{default:()=>m});var t=o(36998);o(41594);const r=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var i=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(this,arguments)}var c={},d="wrapper";function m(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,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,i);return(0,r.mdx)(d,s({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.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,r.mdx)("h2",null,"Features"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"Allow to register new commands"),(0,r.mdx)("li",{parentName:"ul"},"Use commander commands."),(0,r.mdx)("li",{parentName:"ul"},"Render to stdout as string or as a React component by Ink."))))}m.isMDXComponent=!0;const p=[t],l=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -977,7 +977,7 @@
977
977
  "_legacy": {
978
978
  "scope": "teambit.harmony",
979
979
  "name": "cli",
980
- "version": "0.0.853"
980
+ "version": "0.0.855"
981
981
  },
982
982
  "_scope": "teambit.harmony"
983
983
  }
@@ -2247,7 +2247,7 @@
2247
2247
  "componentId": {
2248
2248
  "scope": "teambit.harmony",
2249
2249
  "name": "cli",
2250
- "version": "0.0.853"
2250
+ "version": "0.0.855"
2251
2251
  },
2252
2252
  "taggedModuleExports": []
2253
2253
  }
package/cli.docs.mdx CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Bit's command-line interface. Enables aspects to add and remove commands.
3
- labels: ['cli', 'component', 'ink']
3
+ labels: ['cli', 'component']
4
4
  ---
5
5
 
6
6
  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.
package/dist/cli.docs.mdx CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Bit's command-line interface. Enables aspects to add and remove commands.
3
- labels: ['cli', 'component', 'ink']
3
+ labels: ['cli', 'component']
4
4
  ---
5
5
 
6
6
  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.
@@ -10,17 +10,11 @@ export declare class CommandRunner {
10
10
  */
11
11
  runCommand(): Promise<boolean | void | null>;
12
12
  private bootstrapCommand;
13
- /**
14
- * when both "render" and "report" were implemented, check whether it's a terminal.
15
- * if it's a terminal, use "render", if not, use "report" because "report" is just a string
16
- */
17
- private shouldRunRender;
18
13
  /**
19
14
  * this works for both, Harmony commands and Legacy commands (the legacy-command-adapter
20
15
  * implements json() method)
21
16
  */
22
17
  private runJsonHandler;
23
- private runRenderHandler;
24
18
  private runReportHandler;
25
19
  private runWaitHandler;
26
20
  /**
@@ -4,13 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CommandRunner = void 0;
7
- function _ink() {
8
- const data = require("ink");
9
- _ink = function () {
10
- return data;
11
- };
12
- return data;
13
- }
14
7
  function _logger() {
15
8
  const data = _interopRequireDefault(require("@teambit/legacy/dist/logger/logger"));
16
9
  _logger = function () {
@@ -83,9 +76,6 @@ class CommandRunner {
83
76
  if (this.flags.json) {
84
77
  return await this.runJsonHandler();
85
78
  }
86
- if (this.shouldRunRender()) {
87
- return await this.runRenderHandler();
88
- }
89
79
  if (this.command.report) {
90
80
  return await this.runReportHandler();
91
81
  }
@@ -95,7 +85,7 @@ class CommandRunner {
95
85
  } catch (err) {
96
86
  return (0, _handleErrors().handleErrorAndExit)(err, this.commandName);
97
87
  }
98
- throw new Error(`command "${this.commandName}" doesn't implement "render" nor "report" methods`);
88
+ throw new Error(`command "${this.commandName}" doesn't implement "render" nor "report" nor "wait" methods`);
99
89
  }
100
90
  bootstrapCommand() {
101
91
  _analytics().Analytics.init(this.commandName, this.flags, this.args);
@@ -109,18 +99,6 @@ class CommandRunner {
109
99
  }
110
100
  }
111
101
 
112
- /**
113
- * when both "render" and "report" were implemented, check whether it's a terminal.
114
- * if it's a terminal, use "render", if not, use "report" because "report" is just a string
115
- */
116
- shouldRunRender() {
117
- const isTerminal = process.stdout.isTTY;
118
- if (this.command.report && !isTerminal) {
119
- return false;
120
- }
121
- return Boolean(this.command.render);
122
- }
123
-
124
102
  /**
125
103
  * this works for both, Harmony commands and Legacy commands (the legacy-command-adapter
126
104
  * implements json() method)
@@ -133,20 +111,6 @@ class CommandRunner {
133
111
  const data = result.data || result;
134
112
  return this.writeAndExit(JSON.stringify(data, null, 2), code);
135
113
  }
136
- async runRenderHandler() {
137
- if (!this.command.render) throw new Error('runRenderHandler expects command.render to be implemented');
138
- const result = await this.command.render(this.args, this.flags);
139
- _loader().default.off();
140
- const {
141
- data,
142
- code
143
- } = toRenderResult(result);
144
- const {
145
- waitUntilExit
146
- } = (0, _ink().render)(data);
147
- await waitUntilExit();
148
- return _logger().default.exitAfterFlush(code, this.commandName);
149
- }
150
114
  async runReportHandler() {
151
115
  if (!this.command.report) throw new Error('runReportHandler expects command.report to be implemented');
152
116
  const result = await this.command.report(this.args, this.flags);
@@ -185,15 +149,5 @@ class CommandRunner {
185
149
  }
186
150
  }
187
151
  exports.CommandRunner = CommandRunner;
188
- function toRenderResult(obj) {
189
- return isRenderResult(obj) ? obj : {
190
- data: obj,
191
- code: 0
192
- };
193
- }
194
- function isRenderResult(obj) {
195
- // eslint-disable-next-line no-prototype-builtins
196
- return typeof obj === 'object' && typeof obj.code === 'number' && obj.hasOwnProperty('data');
197
- }
198
152
 
199
153
  //# sourceMappingURL=command-runner.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_ink","data","require","_logger","_interopRequireDefault","_commandRegistry","_loader","_handleErrors","_constants","_globalFlags","_analytics","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","CommandRunner","constructor","command","args","flags","commandName","parseCommandName","name","runCommand","bootstrapCommand","determineConsoleWritingDuringCommand","json","runJsonHandler","shouldRunRender","runRenderHandler","report","runReportHandler","wait","runWaitHandler","err","handleErrorAndExit","Error","Analytics","init","logger","info","token","TOKEN_FLAG_NAME","globalFlags","toString","isTerminal","process","stdout","isTTY","Boolean","render","result","code","writeAndExit","JSON","stringify","loader","off","toRenderResult","waitUntilExit","exitAfterFlush","exitCode","on","start","shouldWriteToConsole","log","logValue","undefined","switchToConsoleLogger","write","exports","isRenderResult","hasOwnProperty"],"sources":["command-runner.ts"],"sourcesContent":["import { render } from 'ink';\nimport logger, { LoggerLevel } from '@teambit/legacy/dist/logger/logger';\nimport { CLIArgs, Command, Flags, RenderResult } from '@teambit/legacy/dist/cli/command';\nimport { parseCommandName } from '@teambit/legacy/dist/cli/command-registry';\nimport loader from '@teambit/legacy/dist/cli/loader';\nimport { handleErrorAndExit } from '@teambit/legacy/dist/cli/handle-errors';\nimport { TOKEN_FLAG_NAME } from '@teambit/legacy/dist/constants';\nimport globalFlags from '@teambit/legacy/dist/cli/global-flags';\nimport { Analytics } from '@teambit/legacy/dist/analytics/analytics';\n\nexport class CommandRunner {\n private commandName: string;\n constructor(private command: Command, private args: CLIArgs, private flags: Flags) {\n this.commandName = parseCommandName(this.command.name);\n }\n\n /**\n * run command using one of the handler, \"json\"/\"report\"/\"render\". once done, exit the process.\n */\n async runCommand() {\n try {\n this.bootstrapCommand();\n this.determineConsoleWritingDuringCommand();\n if (this.flags.json) {\n return await this.runJsonHandler();\n }\n if (this.shouldRunRender()) {\n return await this.runRenderHandler();\n }\n if (this.command.report) {\n return await this.runReportHandler();\n }\n if (this.command.wait) {\n return await this.runWaitHandler();\n }\n } catch (err: any) {\n return handleErrorAndExit(err, this.commandName);\n }\n\n throw new Error(`command \"${this.commandName}\" doesn't implement \"render\" nor \"report\" methods`);\n }\n\n private bootstrapCommand() {\n Analytics.init(this.commandName, this.flags, this.args);\n logger.info(`[*] started a new command: \"${this.commandName}\" with the following data:`, {\n args: this.args,\n flags: this.flags,\n });\n const token = this.flags[TOKEN_FLAG_NAME];\n if (token) {\n globalFlags.token = token.toString();\n }\n }\n\n /**\n * when both \"render\" and \"report\" were implemented, check whether it's a terminal.\n * if it's a terminal, use \"render\", if not, use \"report\" because \"report\" is just a string\n */\n private shouldRunRender() {\n const isTerminal = process.stdout.isTTY;\n if (this.command.report && !isTerminal) {\n return false;\n }\n return Boolean(this.command.render);\n }\n\n /**\n * this works for both, Harmony commands and Legacy commands (the legacy-command-adapter\n * implements json() method)\n */\n private async runJsonHandler() {\n if (!this.flags.json) return null;\n if (!this.command.json) throw new Error(`command \"${this.commandName}\" doesn't implement \"json\" method`);\n const result = await this.command.json(this.args, this.flags);\n const code = result.code || 0;\n const data = result.data || result;\n return this.writeAndExit(JSON.stringify(data, null, 2), code);\n }\n\n private async runRenderHandler() {\n if (!this.command.render) throw new Error('runRenderHandler expects command.render to be implemented');\n const result = await this.command.render(this.args, this.flags);\n loader.off();\n\n const { data, code } = toRenderResult(result);\n\n const { waitUntilExit } = render(data);\n await waitUntilExit();\n return logger.exitAfterFlush(code, this.commandName);\n }\n\n private async runReportHandler() {\n if (!this.command.report) throw new Error('runReportHandler expects command.report to be implemented');\n const result = await this.command.report(this.args, this.flags);\n loader.off();\n const data = typeof result === 'string' ? result : result.data;\n const exitCode = typeof result === 'string' ? 0 : result.code;\n return this.writeAndExit(`${data}\\n`, exitCode);\n }\n\n private async runWaitHandler() {\n if (!this.command.wait) throw new Error('runReportHandler expects command.wait to be implemented');\n await this.command.wait(this.args, this.flags);\n }\n\n /**\n * the loader and logger.console write output to the console during the command execution.\n * for internals commands, such as, _put, _fetch, the command.loader = false.\n */\n private determineConsoleWritingDuringCommand() {\n if (this.command.loader && !this.flags.json && !this.flags['get-yargs-completions']) {\n loader.on();\n loader.start(`running command \"${this.commandName}\"...`);\n logger.shouldWriteToConsole = true;\n } else {\n loader.off();\n logger.shouldWriteToConsole = false;\n }\n if (this.flags.log) {\n // probably not necessary anymore. it is handled in src/logger - determineWritingLogToScreen()\n const logValue = typeof this.flags.log === 'string' ? this.flags.log : undefined;\n logger.switchToConsoleLogger(logValue as LoggerLevel);\n }\n }\n\n private async writeAndExit(data: string, exitCode: number) {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n return process.stdout.write(data, async () => logger.exitAfterFlush(exitCode, this.commandName, data));\n }\n}\n\nfunction toRenderResult(obj: RenderResult | React.ReactElement) {\n return isRenderResult(obj) ? obj : { data: obj, code: 0 };\n}\n\nfunction isRenderResult(obj: RenderResult | any): obj is RenderResult {\n // eslint-disable-next-line no-prototype-builtins\n return typeof obj === 'object' && typeof obj.code === 'number' && obj.hasOwnProperty('data');\n}\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,iBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,gBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,cAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,aAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,aAAA;EAAA,MAAAR,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAO,YAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,WAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,UAAA,YAAAA,CAAA;IAAA,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,CAACyB,oBAAoB,GAAG,IAAI;IACpC,CAAC,MAAM;MACLR,iBAAM,CAACC,GAAG,CAAC,CAAC;MACZlB,iBAAM,CAACyB,oBAAoB,GAAG,KAAK;IACrC;IACA,IAAI,IAAI,CAAC7C,KAAK,CAAC8C,GAAG,EAAE;MAClB;MACA,MAAMC,QAAQ,GAAG,OAAO,IAAI,CAAC/C,KAAK,CAAC8C,GAAG,KAAK,QAAQ,GAAG,IAAI,CAAC9C,KAAK,CAAC8C,GAAG,GAAGE,SAAS;MAChF5B,iBAAM,CAAC6B,qBAAqB,CAACF,QAAuB,CAAC;IACvD;EACF;EAEA,MAAcb,YAAYA,CAACvE,IAAY,EAAE+E,QAAgB,EAAE;IACzD;IACA,OAAOf,OAAO,CAACC,MAAM,CAACsB,KAAK,CAACvF,IAAI,EAAE,YAAYyD,iBAAM,CAACqB,cAAc,CAACC,QAAQ,EAAE,IAAI,CAACzC,WAAW,EAAEtC,IAAI,CAAC,CAAC;EACxG;AACF;AAACwF,OAAA,CAAAvD,aAAA,GAAAA,aAAA;AAED,SAAS2C,cAAcA,CAAClE,GAAsC,EAAE;EAC9D,OAAO+E,cAAc,CAAC/E,GAAG,CAAC,GAAGA,GAAG,GAAG;IAAEV,IAAI,EAAEU,GAAG;IAAE4D,IAAI,EAAE;EAAE,CAAC;AAC3D;AAEA,SAASmB,cAAcA,CAAC/E,GAAuB,EAAuB;EACpE;EACA,OAAO,OAAOA,GAAG,KAAK,QAAQ,IAAI,OAAOA,GAAG,CAAC4D,IAAI,KAAK,QAAQ,IAAI5D,GAAG,CAACgF,cAAc,CAAC,MAAM,CAAC;AAC9F"}
1
+ {"version":3,"names":["_logger","data","_interopRequireDefault","require","_commandRegistry","_loader","_handleErrors","_constants","_globalFlags","_analytics","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","CommandRunner","constructor","command","args","flags","commandName","parseCommandName","name","runCommand","bootstrapCommand","determineConsoleWritingDuringCommand","json","runJsonHandler","report","runReportHandler","wait","runWaitHandler","err","handleErrorAndExit","Error","Analytics","init","logger","info","token","TOKEN_FLAG_NAME","globalFlags","toString","result","code","writeAndExit","JSON","stringify","loader","off","exitCode","on","start","shouldWriteToConsole","log","logValue","undefined","switchToConsoleLogger","process","stdout","write","exitAfterFlush","exports"],"sources":["command-runner.ts"],"sourcesContent":["import logger, { LoggerLevel } from '@teambit/legacy/dist/logger/logger';\nimport { CLIArgs, Command, Flags } from '@teambit/legacy/dist/cli/command';\nimport { parseCommandName } from '@teambit/legacy/dist/cli/command-registry';\nimport loader from '@teambit/legacy/dist/cli/loader';\nimport { handleErrorAndExit } from '@teambit/legacy/dist/cli/handle-errors';\nimport { TOKEN_FLAG_NAME } from '@teambit/legacy/dist/constants';\nimport globalFlags from '@teambit/legacy/dist/cli/global-flags';\nimport { Analytics } from '@teambit/legacy/dist/analytics/analytics';\n\nexport class CommandRunner {\n private commandName: string;\n constructor(private command: Command, private args: CLIArgs, private flags: Flags) {\n this.commandName = parseCommandName(this.command.name);\n }\n\n /**\n * run command using one of the handler, \"json\"/\"report\"/\"render\". once done, exit the process.\n */\n async runCommand() {\n try {\n this.bootstrapCommand();\n this.determineConsoleWritingDuringCommand();\n if (this.flags.json) {\n return await this.runJsonHandler();\n }\n if (this.command.report) {\n return await this.runReportHandler();\n }\n if (this.command.wait) {\n return await this.runWaitHandler();\n }\n } catch (err: any) {\n return handleErrorAndExit(err, this.commandName);\n }\n\n throw new Error(`command \"${this.commandName}\" doesn't implement \"render\" nor \"report\" nor \"wait\" methods`);\n }\n\n private bootstrapCommand() {\n Analytics.init(this.commandName, this.flags, this.args);\n logger.info(`[*] started a new command: \"${this.commandName}\" with the following data:`, {\n args: this.args,\n flags: this.flags,\n });\n const token = this.flags[TOKEN_FLAG_NAME];\n if (token) {\n globalFlags.token = token.toString();\n }\n }\n\n /**\n * this works for both, Harmony commands and Legacy commands (the legacy-command-adapter\n * implements json() method)\n */\n private async runJsonHandler() {\n if (!this.flags.json) return null;\n if (!this.command.json) throw new Error(`command \"${this.commandName}\" doesn't implement \"json\" method`);\n const result = await this.command.json(this.args, this.flags);\n const code = result.code || 0;\n const data = result.data || result;\n return this.writeAndExit(JSON.stringify(data, null, 2), code);\n }\n\n private async runReportHandler() {\n if (!this.command.report) throw new Error('runReportHandler expects command.report to be implemented');\n const result = await this.command.report(this.args, this.flags);\n loader.off();\n const data = typeof result === 'string' ? result : result.data;\n const exitCode = typeof result === 'string' ? 0 : result.code;\n return this.writeAndExit(`${data}\\n`, exitCode);\n }\n\n private async runWaitHandler() {\n if (!this.command.wait) throw new Error('runReportHandler expects command.wait to be implemented');\n await this.command.wait(this.args, this.flags);\n }\n\n /**\n * the loader and logger.console write output to the console during the command execution.\n * for internals commands, such as, _put, _fetch, the command.loader = false.\n */\n private determineConsoleWritingDuringCommand() {\n if (this.command.loader && !this.flags.json && !this.flags['get-yargs-completions']) {\n loader.on();\n loader.start(`running command \"${this.commandName}\"...`);\n logger.shouldWriteToConsole = true;\n } else {\n loader.off();\n logger.shouldWriteToConsole = false;\n }\n if (this.flags.log) {\n // probably not necessary anymore. it is handled in src/logger - determineWritingLogToScreen()\n const logValue = typeof this.flags.log === 'string' ? this.flags.log : undefined;\n logger.switchToConsoleLogger(logValue as LoggerLevel);\n }\n }\n\n private async writeAndExit(data: string, exitCode: number) {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n return process.stdout.write(data, async () => logger.exitAfterFlush(exitCode, this.commandName, data));\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,iBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,gBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;E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,IAAI,CAACnC,KAAK,CAACmC,GAAG,GAAGE,SAAS;MAChFnB,iBAAM,CAACoB,qBAAqB,CAACF,QAAuB,CAAC;IACvD;EACF;EAEA,MAAcV,YAAYA,CAAC9D,IAAY,EAAEmE,QAAgB,EAAE;IACzD;IACA,OAAOQ,OAAO,CAACC,MAAM,CAACC,KAAK,CAAC7E,IAAI,EAAE,YAAYsD,iBAAM,CAACwB,cAAc,CAACX,QAAQ,EAAE,IAAI,CAAC9B,WAAW,EAAErC,IAAI,CAAC,CAAC;EACxG;AACF;AAAC+E,OAAA,CAAA/C,aAAA,GAAAA,aAAA"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.853/dist/cli.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.853/dist/cli.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.855/dist/cli.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.855/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.853",
3
+ "version": "0.0.855",
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.853"
9
+ "version": "0.0.855"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,11 +14,10 @@
14
14
  "lodash": "4.17.21",
15
15
  "yargs": "17.0.1",
16
16
  "p-map-series": "2.1.0",
17
- "ink": "3.2.0",
18
17
  "pad-right": "0.2.2",
19
18
  "@teambit/harmony": "0.4.6",
20
19
  "@teambit/bit-error": "0.0.404",
21
- "@teambit/logger": "0.0.946"
20
+ "@teambit/logger": "0.0.948"
22
21
  },
23
22
  "devDependencies": {
24
23
  "@types/didyoumean": "1.2.0",