@teambit/lanes.modules.diff 0.0.391 → 0.0.393

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.
@@ -8,6 +8,10 @@ export declare class LaneDiffCmd implements Command {
8
8
  description: string;
9
9
  extendedDescription: string;
10
10
  alias: string;
11
+ arguments: {
12
+ name: string;
13
+ description: string;
14
+ }[];
11
15
  options: CommandOptions;
12
16
  loader: boolean;
13
17
  private: boolean;
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LaneDiffCmd = void 0;
16
16
  const chalk_1 = __importDefault(require("chalk"));
17
17
  const components_diff_1 = require("@teambit/legacy/dist/consumer/component-ops/components-diff");
18
+ const constants_1 = require("@teambit/legacy/dist/constants");
18
19
  const lane_diff_generator_1 = require("./lane-diff-generator");
19
20
  class LaneDiffCmd {
20
21
  constructor(workspace, scope) {
@@ -26,8 +27,23 @@ class LaneDiffCmd {
26
27
  bit lane diff to => diff between the current lane (or default-lane when in scope) and "to" lane.
27
28
  bit lane diff from to => diff between "from" lane and "to" lane.`;
28
29
  this.alias = '';
30
+ this.arguments = [
31
+ {
32
+ name: 'from',
33
+ description: `base lane for comparison`,
34
+ },
35
+ {
36
+ name: 'to',
37
+ description: `lane being compared to base lane`,
38
+ },
39
+ ];
29
40
  this.options = [
30
- ['', 'pattern <component-pattern>', 'show lane-diff for the specified component-pattern only'],
41
+ [
42
+ '',
43
+ 'pattern <component-pattern>',
44
+ `show lane-diff for components conforming to the specified component-pattern only
45
+ component-pattern format: ${constants_1.COMPONENT_PATTERN_HELP}`,
46
+ ],
31
47
  ];
32
48
  this.loader = true;
33
49
  this.private = true;
@@ -1 +1 @@
1
- {"version":3,"file":"lane-diff.cmd.js","sourceRoot":"","sources":["../lane-diff.cmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,kDAA0B;AAC1B,iGAAgG;AAChG,+DAA0D;AAE1D,MAAa,WAAW;IAgBtB,Y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AC,KAAK,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzF,CAAC,CAAC;YAEF,MAAM,cAAc,GAAG,IAAA,mCAAiB,EAAC,aAAa,CAAC,CAAC;YAExD,MAAM,aAAa,GAAG,+CAA+C,CAAC;YACtE,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,eAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/F,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,eAAK,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7F,MAAM,aAAa,GAAG,cAAc,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;YAC7D,MAAM,eAAe,GAAG,cAAc,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;YACnE,OAAO,GAAG,cAAc,GAAG,aAAa,GAAG,eAAe,GAAG,WAAW,EAAE,CAAC;QAC7E,CAAC;KAAA;CACF;AAtDD,kCAsDC"}
package/lane-diff.cmd.ts CHANGED
@@ -3,6 +3,7 @@ import { ScopeMain } from '@teambit/scope';
3
3
  import { Workspace } from '@teambit/workspace';
4
4
  import chalk from 'chalk';
5
5
  import { outputDiffResults } from '@teambit/legacy/dist/consumer/component-ops/components-diff';
6
+ import { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';
6
7
  import { LaneDiffGenerator } from './lane-diff-generator';
7
8
 
8
9
  export class LaneDiffCmd implements Command {
@@ -12,8 +13,23 @@ export class LaneDiffCmd implements Command {
12
13
  bit lane diff to => diff between the current lane (or default-lane when in scope) and "to" lane.
13
14
  bit lane diff from to => diff between "from" lane and "to" lane.`;
14
15
  alias = '';
16
+ arguments = [
17
+ {
18
+ name: 'from',
19
+ description: `base lane for comparison`,
20
+ },
21
+ {
22
+ name: 'to',
23
+ description: `lane being compared to base lane`,
24
+ },
25
+ ];
15
26
  options = [
16
- ['', 'pattern <component-pattern>', 'show lane-diff for the specified component-pattern only'],
27
+ [
28
+ '',
29
+ 'pattern <component-pattern>',
30
+ `show lane-diff for components conforming to the specified component-pattern only
31
+ component-pattern format: ${COMPONENT_PATTERN_HELP}`,
32
+ ],
17
33
  ] as CommandOptions;
18
34
  loader = true;
19
35
  private = true;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@teambit/lanes.modules.diff",
3
- "version": "0.0.391",
3
+ "version": "0.0.393",
4
4
  "homepage": "https://bit.cloud/teambit/lanes/modules/diff",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.lanes",
8
8
  "name": "modules/diff",
9
- "version": "0.0.391"
9
+ "version": "0.0.393"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
13
13
  "@teambit/legacy-bit-id": "1.0.0",
14
14
  "@teambit/bit-error": "0.0.402",
15
- "@teambit/lane-id": "0.0.273"
15
+ "@teambit/lane-id": "0.0.275"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/mocha": "9.1.0",