@teambit/harmony.content.cli-reference 1.95.156 → 1.95.157

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.
@@ -2006,31 +2006,16 @@
2006
2006
  "name": "remove <component-pattern>",
2007
2007
  "alias": "rm",
2008
2008
  "options": [
2009
- [
2010
- "",
2011
- "soft",
2012
- "DEPRECATED. use --delete instead"
2013
- ],
2014
2009
  [
2015
2010
  "",
2016
2011
  "delete",
2017
2012
  "mark the component as deleted. after tag/snap and export the remote will be updated"
2018
2013
  ],
2019
- [
2020
- "",
2021
- "remote",
2022
- "DEPRECATED. use --hard instead"
2023
- ],
2024
2014
  [
2025
2015
  "",
2026
2016
  "hard",
2027
2017
  "remove a component completely from a remote scope. careful! this is a permanent change that could corrupt dependents. prefer --delete"
2028
2018
  ],
2029
- [
2030
- "",
2031
- "from-lane",
2032
- "revert to main if exists on currently checked out lane, otherwise, remove it"
2033
- ],
2034
2019
  [
2035
2020
  "t",
2036
2021
  "track",
@@ -2053,7 +2038,7 @@
2053
2038
  ]
2054
2039
  ],
2055
2040
  "description": "remove component(s) from the workspace, or a remote scope",
2056
- "extendedDescription": "to remove components from your local workspace only, use \"bit remove\" (with no flags).\n\nto remove a component from the remote scope, use \"bit remove --delete\", to mark the components as deleted.\nonce tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well.\nin case this is running on a lane, it'll mark the component as deleted on the lane only, which tells bit not to merge them. the main will not be affected.\n",
2041
+ "extendedDescription": "to remove components from your local workspace only, use \"bit remove\" (with no flags).\n\nto remove a component from the remote scope, use \"bit remove --delete\", to mark the components as deleted.\nonce tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well.\n\nto remove components from lanes, use \"bit lane remove-comp\".\n",
2057
2042
  "group": "collaborate",
2058
2043
  "private": false,
2059
2044
  "remoteOp": true,
@@ -2780,7 +2765,7 @@
2780
2765
  },
2781
2766
  {
2782
2767
  "name": "lane [lane-name]",
2783
- "alias": "",
2768
+ "alias": "l",
2784
2769
  "options": [
2785
2770
  [
2786
2771
  "d",
@@ -3082,6 +3067,32 @@
3082
3067
  }
3083
3068
  ]
3084
3069
  },
3070
+ {
3071
+ "name": "remove-comp <component-pattern>",
3072
+ "alias": "rc",
3073
+ "options": [
3074
+ [
3075
+ "",
3076
+ "workspace-only",
3077
+ "do not mark the components as removed. instead, remove them from the workspace only"
3078
+ ],
3079
+ [
3080
+ "",
3081
+ "update-main",
3082
+ "NOT IMPLEMENTED YET. mark as removed on main after merging this lane into main"
3083
+ ]
3084
+ ],
3085
+ "description": "remove components when on a lane",
3086
+ "extendedDescription": "in case the components are part of the lane and the lane is exported, it marks the components as removed,\nand then after snap+export, the remote-lane gets updated as well. upon lane-merge, these components are skipped.\n\nin case the components are not part of the lane or the lane is new, it simply removes the components from the workspace",
3087
+ "group": "collaborate",
3088
+ "private": false,
3089
+ "arguments": [
3090
+ {
3091
+ "name": "component-pattern",
3092
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
3093
+ }
3094
+ ]
3095
+ },
3085
3096
  {
3086
3097
  "name": "merge <lane> [pattern]",
3087
3098
  "alias": "",
package/cli-reference.mdx CHANGED
@@ -754,6 +754,7 @@ when no package is specified, all workspace dependencies are installed and all w
754
754
 
755
755
  ## lane
756
756
 
757
+ **Alias**: `l`
757
758
  **Description**: manage lanes
758
759
 
759
760
  `bit lane [lane-name]`
@@ -880,6 +881,21 @@ bit lane diff from to => diff between "from" lane and "to" lane.
880
881
  | `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
881
882
  | `--pattern <component-pattern>` | `-p` | EXPERIMENTAL. switch only the specified component-pattern. works only when the workspace is empty |
882
883
 
884
+ ### lane remove-comp
885
+
886
+ **Usage**: `lane remove-comp <component-pattern>`
887
+
888
+ **Description**: remove components when on a lane
889
+ in case the components are part of the lane and the lane is exported, it marks the components as removed,
890
+ and then after snap+export, the remote-lane gets updated as well. upon lane-merge, these components are skipped.
891
+
892
+ in case the components are not part of the lane or the lane is new, it simply removes the components from the workspace
893
+
894
+ | **Option** | **Option alias** | **Description** |
895
+ | ------------------ | :--------------: | ----------------------------------------------------------------------------------- |
896
+ | `--workspace-only` | | do not mark the components as removed. instead, remove them from the workspace only |
897
+ | `--update-main` | | NOT IMPLEMENTED YET. mark as removed on main after merging this lane into main |
898
+
883
899
  ### lane merge
884
900
 
885
901
  **Usage**: `lane merge <lane> [pattern]`
@@ -1165,18 +1181,16 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
1165
1181
  to remove components from your local workspace only, use "bit remove" (with no flags).
1166
1182
 
1167
1183
  to remove a component from the remote scope, use "bit remove --delete", to mark the components as deleted.
1168
- once tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well.
1169
- in case this is running on a lane, it'll mark the component as deleted on the lane only, which tells bit not to merge them. the main will not be affected.
1184
+ once tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well.
1185
+
1186
+ to remove components from lanes, use "bit lane remove-comp".
1170
1187
 
1171
1188
  `bit remove <component-pattern>`
1172
1189
 
1173
1190
  | **Option** | **Option alias** | **Description** |
1174
1191
  | -------------- | :--------------: | ------------------------------------------------------------------------------------------------------------------------------------- |
1175
- | `--soft` | | DEPRECATED. use --delete instead |
1176
1192
  | `--delete` | | mark the component as deleted. after tag/snap and export the remote will be updated |
1177
- | `--remote` | | DEPRECATED. use --hard instead |
1178
1193
  | `--hard` | | remove a component completely from a remote scope. careful! this is a permanent change that could corrupt dependents. prefer --delete |
1179
- | `--from-lane` | | revert to main if exists on currently checked out lane, otherwise, remove it |
1180
1194
  | `--track` | `-t` | keep tracking component in .bitmap (default = false), helps transform a tagged-component to new |
1181
1195
  | `--keep-files` | | keep component files (just untrack the component) |
1182
1196
  | `--force` | `-f` | removes the component from the scope, even if used as a dependency. WARNING: components that depend on this component will corrupt |
@@ -2006,31 +2006,16 @@
2006
2006
  "name": "remove <component-pattern>",
2007
2007
  "alias": "rm",
2008
2008
  "options": [
2009
- [
2010
- "",
2011
- "soft",
2012
- "DEPRECATED. use --delete instead"
2013
- ],
2014
2009
  [
2015
2010
  "",
2016
2011
  "delete",
2017
2012
  "mark the component as deleted. after tag/snap and export the remote will be updated"
2018
2013
  ],
2019
- [
2020
- "",
2021
- "remote",
2022
- "DEPRECATED. use --hard instead"
2023
- ],
2024
2014
  [
2025
2015
  "",
2026
2016
  "hard",
2027
2017
  "remove a component completely from a remote scope. careful! this is a permanent change that could corrupt dependents. prefer --delete"
2028
2018
  ],
2029
- [
2030
- "",
2031
- "from-lane",
2032
- "revert to main if exists on currently checked out lane, otherwise, remove it"
2033
- ],
2034
2019
  [
2035
2020
  "t",
2036
2021
  "track",
@@ -2053,7 +2038,7 @@
2053
2038
  ]
2054
2039
  ],
2055
2040
  "description": "remove component(s) from the workspace, or a remote scope",
2056
- "extendedDescription": "to remove components from your local workspace only, use \"bit remove\" (with no flags).\n\nto remove a component from the remote scope, use \"bit remove --delete\", to mark the components as deleted.\nonce tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well.\nin case this is running on a lane, it'll mark the component as deleted on the lane only, which tells bit not to merge them. the main will not be affected.\n",
2041
+ "extendedDescription": "to remove components from your local workspace only, use \"bit remove\" (with no flags).\n\nto remove a component from the remote scope, use \"bit remove --delete\", to mark the components as deleted.\nonce tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well.\n\nto remove components from lanes, use \"bit lane remove-comp\".\n",
2057
2042
  "group": "collaborate",
2058
2043
  "private": false,
2059
2044
  "remoteOp": true,
@@ -2780,7 +2765,7 @@
2780
2765
  },
2781
2766
  {
2782
2767
  "name": "lane [lane-name]",
2783
- "alias": "",
2768
+ "alias": "l",
2784
2769
  "options": [
2785
2770
  [
2786
2771
  "d",
@@ -3082,6 +3067,32 @@
3082
3067
  }
3083
3068
  ]
3084
3069
  },
3070
+ {
3071
+ "name": "remove-comp <component-pattern>",
3072
+ "alias": "rc",
3073
+ "options": [
3074
+ [
3075
+ "",
3076
+ "workspace-only",
3077
+ "do not mark the components as removed. instead, remove them from the workspace only"
3078
+ ],
3079
+ [
3080
+ "",
3081
+ "update-main",
3082
+ "NOT IMPLEMENTED YET. mark as removed on main after merging this lane into main"
3083
+ ]
3084
+ ],
3085
+ "description": "remove components when on a lane",
3086
+ "extendedDescription": "in case the components are part of the lane and the lane is exported, it marks the components as removed,\nand then after snap+export, the remote-lane gets updated as well. upon lane-merge, these components are skipped.\n\nin case the components are not part of the lane or the lane is new, it simply removes the components from the workspace",
3087
+ "group": "collaborate",
3088
+ "private": false,
3089
+ "arguments": [
3090
+ {
3091
+ "name": "component-pattern",
3092
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
3093
+ }
3094
+ ]
3095
+ },
3085
3096
  {
3086
3097
  "name": "merge <lane> [pattern]",
3087
3098
  "alias": "",
@@ -3432,6 +3432,12 @@ function MDXContent(_ref) {
3432
3432
  "align": null
3433
3433
  }, "do not install optional dependencies (works with pnpm only)")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "lane"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3434
3434
  parentName: "p"
3435
+ }, "Alias"), ": ", (0, _react2.mdx)("inlineCode", {
3436
+ parentName: "p"
3437
+ }, "l"), (0, _react2.mdx)("br", {
3438
+ parentName: "p"
3439
+ }), "\n", (0, _react2.mdx)("strong", {
3440
+ parentName: "p"
3435
3441
  }, "Description"), ": manage lanes"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
3436
3442
  parentName: "p"
3437
3443
  }, "bit lane [lane-name]")), (0, _react2.mdx)("h3", null, "lane list"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
@@ -3989,7 +3995,64 @@ function MDXContent(_ref) {
3989
3995
  }, "-p")), (0, _react2.mdx)("td", {
3990
3996
  parentName: "tr",
3991
3997
  "align": null
3992
- }, "EXPERIMENTAL. switch only the specified component-pattern. works only when the workspace is empty")))), (0, _react2.mdx)("h3", null, "lane merge"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3998
+ }, "EXPERIMENTAL. switch only the specified component-pattern. works only when the workspace is empty")))), (0, _react2.mdx)("h3", null, "lane remove-comp"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3999
+ parentName: "p"
4000
+ }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
4001
+ parentName: "p"
4002
+ }, "lane remove-comp <component-pattern>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4003
+ parentName: "p"
4004
+ }, "Description"), ": remove components when on a lane", (0, _react2.mdx)("br", {
4005
+ parentName: "p"
4006
+ }), "\n", "in case the components are part of the lane and the lane is exported, it marks the components as removed,", (0, _react2.mdx)("br", {
4007
+ parentName: "p"
4008
+ }), "\n", "and then after snap+export, the remote-lane gets updated as well. upon lane-merge, these components are skipped."), (0, _react2.mdx)("p", null, "in case the components are not part of the lane or the lane is new, it simply removes the components from the workspace"), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
4009
+ parentName: "table"
4010
+ }, (0, _react2.mdx)("tr", {
4011
+ parentName: "thead"
4012
+ }, (0, _react2.mdx)("th", {
4013
+ parentName: "tr",
4014
+ "align": null
4015
+ }, (0, _react2.mdx)("strong", {
4016
+ parentName: "th"
4017
+ }, "Option")), (0, _react2.mdx)("th", {
4018
+ parentName: "tr",
4019
+ "align": "center"
4020
+ }, (0, _react2.mdx)("strong", {
4021
+ parentName: "th"
4022
+ }, "Option alias")), (0, _react2.mdx)("th", {
4023
+ parentName: "tr",
4024
+ "align": null
4025
+ }, (0, _react2.mdx)("strong", {
4026
+ parentName: "th"
4027
+ }, "Description")))), (0, _react2.mdx)("tbody", {
4028
+ parentName: "table"
4029
+ }, (0, _react2.mdx)("tr", {
4030
+ parentName: "tbody"
4031
+ }, (0, _react2.mdx)("td", {
4032
+ parentName: "tr",
4033
+ "align": null
4034
+ }, (0, _react2.mdx)("inlineCode", {
4035
+ parentName: "td"
4036
+ }, "--workspace-only")), (0, _react2.mdx)("td", {
4037
+ parentName: "tr",
4038
+ "align": "center"
4039
+ }), (0, _react2.mdx)("td", {
4040
+ parentName: "tr",
4041
+ "align": null
4042
+ }, "do not mark the components as removed. instead, remove them from the workspace only")), (0, _react2.mdx)("tr", {
4043
+ parentName: "tbody"
4044
+ }, (0, _react2.mdx)("td", {
4045
+ parentName: "tr",
4046
+ "align": null
4047
+ }, (0, _react2.mdx)("inlineCode", {
4048
+ parentName: "td"
4049
+ }, "--update-main")), (0, _react2.mdx)("td", {
4050
+ parentName: "tr",
4051
+ "align": "center"
4052
+ }), (0, _react2.mdx)("td", {
4053
+ parentName: "tr",
4054
+ "align": null
4055
+ }, "NOT IMPLEMENTED YET. mark as removed on main after merging this lane into main")))), (0, _react2.mdx)("h3", null, "lane merge"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3993
4056
  parentName: "p"
3994
4057
  }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
3995
4058
  parentName: "p"
@@ -5449,9 +5512,7 @@ function MDXContent(_ref) {
5449
5512
  parentName: "p"
5450
5513
  }), "\n", "to remove components from your local workspace only, use \"bit remove\" (with no flags)."), (0, _react2.mdx)("p", null, "to remove a component from the remote scope, use \"bit remove --delete\", to mark the components as deleted.", (0, _react2.mdx)("br", {
5451
5514
  parentName: "p"
5452
- }), "\n", "once tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well.", (0, _react2.mdx)("br", {
5453
- parentName: "p"
5454
- }), "\n", "in case this is running on a lane, it'll mark the component as deleted on the lane only, which tells bit not to merge them. the main will not be affected."), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
5515
+ }), "\n", "once tagged/snapped and exported, the remote scope will be updated and it'll be marked as deleted there as well."), (0, _react2.mdx)("p", null, "to remove components from lanes, use \"bit lane remove-comp\"."), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
5455
5516
  parentName: "p"
5456
5517
  }, "bit remove <component-pattern>")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
5457
5518
  parentName: "table"
@@ -5481,19 +5542,6 @@ function MDXContent(_ref) {
5481
5542
  "align": null
5482
5543
  }, (0, _react2.mdx)("inlineCode", {
5483
5544
  parentName: "td"
5484
- }, "--soft")), (0, _react2.mdx)("td", {
5485
- parentName: "tr",
5486
- "align": "center"
5487
- }), (0, _react2.mdx)("td", {
5488
- parentName: "tr",
5489
- "align": null
5490
- }, "DEPRECATED. use --delete instead")), (0, _react2.mdx)("tr", {
5491
- parentName: "tbody"
5492
- }, (0, _react2.mdx)("td", {
5493
- parentName: "tr",
5494
- "align": null
5495
- }, (0, _react2.mdx)("inlineCode", {
5496
- parentName: "td"
5497
5545
  }, "--delete")), (0, _react2.mdx)("td", {
5498
5546
  parentName: "tr",
5499
5547
  "align": "center"
@@ -5507,19 +5555,6 @@ function MDXContent(_ref) {
5507
5555
  "align": null
5508
5556
  }, (0, _react2.mdx)("inlineCode", {
5509
5557
  parentName: "td"
5510
- }, "--remote")), (0, _react2.mdx)("td", {
5511
- parentName: "tr",
5512
- "align": "center"
5513
- }), (0, _react2.mdx)("td", {
5514
- parentName: "tr",
5515
- "align": null
5516
- }, "DEPRECATED. use --hard instead")), (0, _react2.mdx)("tr", {
5517
- parentName: "tbody"
5518
- }, (0, _react2.mdx)("td", {
5519
- parentName: "tr",
5520
- "align": null
5521
- }, (0, _react2.mdx)("inlineCode", {
5522
- parentName: "td"
5523
5558
  }, "--hard")), (0, _react2.mdx)("td", {
5524
5559
  parentName: "tr",
5525
5560
  "align": "center"
@@ -5533,19 +5568,6 @@ function MDXContent(_ref) {
5533
5568
  "align": null
5534
5569
  }, (0, _react2.mdx)("inlineCode", {
5535
5570
  parentName: "td"
5536
- }, "--from-lane")), (0, _react2.mdx)("td", {
5537
- parentName: "tr",
5538
- "align": "center"
5539
- }), (0, _react2.mdx)("td", {
5540
- parentName: "tr",
5541
- "align": null
5542
- }, "revert to main if exists on currently checked out lane, otherwise, remove it")), (0, _react2.mdx)("tr", {
5543
- parentName: "tbody"
5544
- }, (0, _react2.mdx)("td", {
5545
- parentName: "tr",
5546
- "align": null
5547
- }, (0, _react2.mdx)("inlineCode", {
5548
- parentName: "td"
5549
5571
  }, "--track")), (0, _react2.mdx)("td", {
5550
5572
  parentName: "tr",
5551
5573
  "align": "center"