@teambit/harmony.content.cli-reference 2.0.211 → 2.0.213

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,5 +1,5 @@
1
1
  ---
2
- description: 'Bit command synopses. Bit version: 1.6.96'
2
+ description: 'Bit command synopses. Bit version: 1.6.98'
3
3
  labels: ['cli', 'mdx', 'docs']
4
4
  ---
5
5
 
@@ -830,6 +830,11 @@
830
830
  {
831
831
  "name": "rename <current-scope-name> <new-scope-name>",
832
832
  "options": [
833
+ [
834
+ "",
835
+ "preserve",
836
+ "avoid renaming files and variables/classes according to the new scope name"
837
+ ],
833
838
  [
834
839
  "r",
835
840
  "refactor",
@@ -841,7 +846,7 @@
841
846
  "for exported components, instead of deleting the original components, deprecating them"
842
847
  ]
843
848
  ],
844
- "description": "rename the scope name for all components with the specified 'current scope name', if exported, create new components and deprecate the original ones",
849
+ "description": "rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones",
845
850
  "extendedDescription": "Note: if `<current-scope-name>` is also the defaultScope for the workspace, this command will set `<new-scope-name>`\nas the defaultScope instead, and that will then be set for all components by default. You may see updates in your .bitmap file\nas a result of this change",
846
851
  "group": "development",
847
852
  "arguments": [
@@ -2155,8 +2160,8 @@
2155
2160
  "name": "move <current-component-dir> <new-component-dir>",
2156
2161
  "alias": "mv",
2157
2162
  "options": [],
2158
- "description": "move a component to a different filesystem path (note: this does NOT affect the component's name or scope, just its location in the workspace)",
2159
- "extendedDescription": "move files or directories of component(s)\n",
2163
+ "description": "move a component to a different filesystem path",
2164
+ "extendedDescription": "(note: this does NOT affect the component's name or scope, just its location in the workspace)",
2160
2165
  "group": "development",
2161
2166
  "private": false,
2162
2167
  "arguments": [
@@ -4454,7 +4459,7 @@
4454
4459
  [
4455
4460
  "s",
4456
4461
  "scope <scope-name>",
4457
- "define the scope for the newly created component"
4462
+ "define the scope for the new component"
4458
4463
  ],
4459
4464
  [
4460
4465
  "r",
package/cli-reference.mdx CHANGED
@@ -1421,8 +1421,8 @@ this command only checks source code changes, it doesn't check for config/aspect
1421
1421
  ## move
1422
1422
 
1423
1423
  **Alias**: `mv`
1424
- **Description**: move a component to a different filesystem path (note: this does NOT affect the component's name or scope, just its location in the workspace)
1425
- move files or directories of component(s)
1424
+ **Description**: move a component to a different filesystem path
1425
+ (note: this does NOT affect the component's name or scope, just its location in the workspace)
1426
1426
 
1427
1427
  `bit move <current-component-dir> <new-component-dir>`
1428
1428
 
@@ -1598,7 +1598,7 @@ to mark components as deleted on the remote scope, use "bit delete".
1598
1598
 
1599
1599
  | **Option** | **Option alias** | **Description** |
1600
1600
  | ------------------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
1601
- | `--scope <scope-name>` | `-s` | define the scope for the newly created component |
1601
+ | `--scope <scope-name>` | `-s` | define the scope for the new component |
1602
1602
  | `--refactor` | `-r` | update the import/require statements in all dependent components (in the same workspace) |
1603
1603
  | `--preserve` | | avoid renaming files and variables/classes according to the new component name |
1604
1604
  | `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
@@ -1714,7 +1714,7 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
1714
1714
 
1715
1715
  **Usage**: `scope rename <current-scope-name> <new-scope-name>`
1716
1716
 
1717
- **Description**: rename the scope name for all components with the specified 'current scope name', if exported, create new components and deprecate the original ones
1717
+ **Description**: rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones
1718
1718
  Note: if `<current-scope-name>` is also the defaultScope for the workspace, this command will set `<new-scope-name>`
1719
1719
  as the defaultScope instead, and that will then be set for all components by default. You may see updates in your .bitmap file
1720
1720
  as a result of this change
@@ -1726,6 +1726,7 @@ as a result of this change
1726
1726
 
1727
1727
  | **Option** | **Option alias** | **Description** |
1728
1728
  | ------------- | :--------------: | --------------------------------------------------------------------------------------------------------------- |
1729
+ | `--preserve` | | avoid renaming files and variables/classes according to the new scope name |
1729
1730
  | `--refactor` | `-r` | update the import statements in all dependent components to the new package name (i.e. with the new scope name) |
1730
1731
  | `--deprecate` | | for exported components, instead of deleting the original components, deprecating them |
1731
1732
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: 'Bit command synopses. Bit version: 1.6.96'
2
+ description: 'Bit command synopses. Bit version: 1.6.98'
3
3
  labels: ['cli', 'mdx', 'docs']
4
4
  ---
5
5
 
@@ -830,6 +830,11 @@
830
830
  {
831
831
  "name": "rename <current-scope-name> <new-scope-name>",
832
832
  "options": [
833
+ [
834
+ "",
835
+ "preserve",
836
+ "avoid renaming files and variables/classes according to the new scope name"
837
+ ],
833
838
  [
834
839
  "r",
835
840
  "refactor",
@@ -841,7 +846,7 @@
841
846
  "for exported components, instead of deleting the original components, deprecating them"
842
847
  ]
843
848
  ],
844
- "description": "rename the scope name for all components with the specified 'current scope name', if exported, create new components and deprecate the original ones",
849
+ "description": "rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones",
845
850
  "extendedDescription": "Note: if `<current-scope-name>` is also the defaultScope for the workspace, this command will set `<new-scope-name>`\nas the defaultScope instead, and that will then be set for all components by default. You may see updates in your .bitmap file\nas a result of this change",
846
851
  "group": "development",
847
852
  "arguments": [
@@ -2155,8 +2160,8 @@
2155
2160
  "name": "move <current-component-dir> <new-component-dir>",
2156
2161
  "alias": "mv",
2157
2162
  "options": [],
2158
- "description": "move a component to a different filesystem path (note: this does NOT affect the component's name or scope, just its location in the workspace)",
2159
- "extendedDescription": "move files or directories of component(s)\n",
2163
+ "description": "move a component to a different filesystem path",
2164
+ "extendedDescription": "(note: this does NOT affect the component's name or scope, just its location in the workspace)",
2160
2165
  "group": "development",
2161
2166
  "private": false,
2162
2167
  "arguments": [
@@ -4454,7 +4459,7 @@
4454
4459
  [
4455
4460
  "s",
4456
4461
  "scope <scope-name>",
4457
- "define the scope for the newly created component"
4462
+ "define the scope for the new component"
4458
4463
  ],
4459
4464
  [
4460
4465
  "r",
@@ -7531,9 +7531,9 @@ function MDXContent(_ref) {
7531
7531
  parentName: "p"
7532
7532
  }), "\n", (0, _react2.mdx)("strong", {
7533
7533
  parentName: "p"
7534
- }, "Description"), ": move a component to a different filesystem path (note: this does NOT affect the component's name or scope, just its location in the workspace)", (0, _react2.mdx)("br", {
7534
+ }, "Description"), ": move a component to a different filesystem path", (0, _react2.mdx)("br", {
7535
7535
  parentName: "p"
7536
- }), "\n", "move files or directories of component(s)"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
7536
+ }), "\n", "(note: this does NOT affect the component's name or scope, just its location in the workspace)"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
7537
7537
  parentName: "p"
7538
7538
  }, "bit move <current-component-dir> <new-component-dir>")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
7539
7539
  parentName: "table"
@@ -8285,7 +8285,7 @@ function MDXContent(_ref) {
8285
8285
  }, "-s")), (0, _react2.mdx)("td", {
8286
8286
  parentName: "tr",
8287
8287
  "align": null
8288
- }, "define the scope for the newly created component")), (0, _react2.mdx)("tr", {
8288
+ }, "define the scope for the new component")), (0, _react2.mdx)("tr", {
8289
8289
  parentName: "tbody"
8290
8290
  }, (0, _react2.mdx)("td", {
8291
8291
  parentName: "tr",
@@ -8852,7 +8852,7 @@ function MDXContent(_ref) {
8852
8852
  parentName: "p"
8853
8853
  }, "scope rename <current-scope-name> <new-scope-name>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
8854
8854
  parentName: "p"
8855
- }, "Description"), ": rename the scope name for all components with the specified 'current scope name', if exported, create new components and deprecate the original ones", (0, _react2.mdx)("br", {
8855
+ }, "Description"), ": rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones", (0, _react2.mdx)("br", {
8856
8856
  parentName: "p"
8857
8857
  }), "\n", "Note: if ", (0, _react2.mdx)("inlineCode", {
8858
8858
  parentName: "p"
@@ -8926,6 +8926,19 @@ function MDXContent(_ref) {
8926
8926
  "align": null
8927
8927
  }, (0, _react2.mdx)("inlineCode", {
8928
8928
  parentName: "td"
8929
+ }, "--preserve")), (0, _react2.mdx)("td", {
8930
+ parentName: "tr",
8931
+ "align": "center"
8932
+ }), (0, _react2.mdx)("td", {
8933
+ parentName: "tr",
8934
+ "align": null
8935
+ }, "avoid renaming files and variables/classes according to the new scope name")), (0, _react2.mdx)("tr", {
8936
+ parentName: "tbody"
8937
+ }, (0, _react2.mdx)("td", {
8938
+ parentName: "tr",
8939
+ "align": null
8940
+ }, (0, _react2.mdx)("inlineCode", {
8941
+ parentName: "td"
8929
8942
  }, "--refactor")), (0, _react2.mdx)("td", {
8930
8943
  parentName: "tr",
8931
8944
  "align": "center"