@teambit/harmony.content.cli-reference 1.95.210 → 1.95.212

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: 0.2.32'
2
+ description: 'Bit command synopses. Bit version: 0.2.34'
3
3
  labels: ['cli', 'mdx', 'docs']
4
4
  ---
5
5
 
@@ -1039,6 +1039,11 @@
1039
1039
  "r",
1040
1040
  "refactor",
1041
1041
  "update the import statements in all dependent components to the new package name (that contains the new owner name)"
1042
+ ],
1043
+ [
1044
+ "",
1045
+ "ast",
1046
+ "EXPERIMENTAL. use ast to transform files instead of regex"
1042
1047
  ]
1043
1048
  ],
1044
1049
  "description": "Renames the owner part of the scope-name for all components with the specified 'current owner name'",
@@ -1056,7 +1061,13 @@
1056
1061
  },
1057
1062
  {
1058
1063
  "name": "fork <original-scope> <new-scope>",
1059
- "options": [],
1064
+ "options": [
1065
+ [
1066
+ "",
1067
+ "ast",
1068
+ "EXPERIMENTAL. use ast to transform files instead of regex"
1069
+ ]
1070
+ ],
1060
1071
  "description": "fork all components of the original-scope and refactor the source-code to use the new scope name",
1061
1072
  "group": "development"
1062
1073
  }
@@ -2939,6 +2950,65 @@
2939
2950
  }
2940
2951
  ]
2941
2952
  },
2953
+ {
2954
+ "name": "log <id>",
2955
+ "alias": "",
2956
+ "options": [
2957
+ [
2958
+ "r",
2959
+ "remote",
2960
+ "show log of a remote component"
2961
+ ],
2962
+ [
2963
+ "",
2964
+ "parents",
2965
+ "show parents and lanes data"
2966
+ ],
2967
+ [
2968
+ "o",
2969
+ "one-line",
2970
+ "show each log entry in one line"
2971
+ ],
2972
+ [
2973
+ "j",
2974
+ "json",
2975
+ "json format"
2976
+ ]
2977
+ ],
2978
+ "description": "show components(s) version history",
2979
+ "extendedDescription": "",
2980
+ "group": "info",
2981
+ "private": false,
2982
+ "remoteOp": true,
2983
+ "skipWorkspace": true,
2984
+ "arguments": [
2985
+ {
2986
+ "name": "id",
2987
+ "description": "component-id or component-name"
2988
+ }
2989
+ ]
2990
+ },
2991
+ {
2992
+ "name": "log-file <filepath>",
2993
+ "alias": "",
2994
+ "options": [
2995
+ [
2996
+ "o",
2997
+ "one-line",
2998
+ "show each log entry in one line"
2999
+ ]
3000
+ ],
3001
+ "description": "EXPERIMENTAL. show file history",
3002
+ "extendedDescription": "",
3003
+ "group": "info",
3004
+ "private": false,
3005
+ "arguments": [
3006
+ {
3007
+ "name": "filepath",
3008
+ "description": "file path relative to the workspace"
3009
+ }
3010
+ ]
3011
+ },
2942
3012
  {
2943
3013
  "name": "test [component-pattern]",
2944
3014
  "alias": "at",
@@ -4287,65 +4357,6 @@
4287
4357
  "private": false,
4288
4358
  "skipWorkspace": true
4289
4359
  },
4290
- {
4291
- "name": "log <id>",
4292
- "alias": "",
4293
- "options": [
4294
- [
4295
- "r",
4296
- "remote",
4297
- "show log of a remote component"
4298
- ],
4299
- [
4300
- "",
4301
- "parents",
4302
- "show parents and lanes data"
4303
- ],
4304
- [
4305
- "o",
4306
- "one-line",
4307
- "show each log entry in one line"
4308
- ],
4309
- [
4310
- "j",
4311
- "json",
4312
- "json format"
4313
- ]
4314
- ],
4315
- "description": "show components(s) version history",
4316
- "extendedDescription": "",
4317
- "group": "info",
4318
- "private": false,
4319
- "remoteOp": true,
4320
- "skipWorkspace": true,
4321
- "arguments": [
4322
- {
4323
- "name": "id",
4324
- "description": "component-id or component-name"
4325
- }
4326
- ]
4327
- },
4328
- {
4329
- "name": "log-file <filepath>",
4330
- "alias": "",
4331
- "options": [
4332
- [
4333
- "o",
4334
- "one-line",
4335
- "show each log entry in one line"
4336
- ]
4337
- ],
4338
- "description": "EXPERIMENTAL. show file history",
4339
- "extendedDescription": "",
4340
- "group": "info",
4341
- "private": false,
4342
- "arguments": [
4343
- {
4344
- "name": "filepath",
4345
- "description": "file path relative to the workspace"
4346
- }
4347
- ]
4348
- },
4349
4360
  {
4350
4361
  "name": "deprecate <component-name>",
4351
4362
  "alias": "d",
@@ -4403,6 +4414,11 @@
4403
4414
  "",
4404
4415
  "preserve",
4405
4416
  "avoid renaming files and variables/classes according to the new component name"
4417
+ ],
4418
+ [
4419
+ "",
4420
+ "ast",
4421
+ "EXPERIMENTAL. use ast to transform files instead of regex"
4406
4422
  ]
4407
4423
  ],
4408
4424
  "description": "rename component. if tagged/exported, create a new component and deprecate the original component. otherwise just renames current component",
@@ -4465,6 +4481,11 @@
4465
4481
  "",
4466
4482
  "no-link",
4467
4483
  "avoid saving a reference to the original component"
4484
+ ],
4485
+ [
4486
+ "",
4487
+ "ast",
4488
+ "EXPERIMENTAL. use ast to transform files instead of regex"
4468
4489
  ]
4469
4490
  ],
4470
4491
  "description": "create a new component forked from an existing one (copies source files and configs)",
package/cli-reference.mdx CHANGED
@@ -790,6 +790,7 @@ bit export => export all staged snaps/tags of components to their remote scope.
790
790
  | `--skip-config` | | do not copy the config (aspects-config, env, etc) to the new component. helpful when it fails during aspect loading |
791
791
  | `--preserve` | | avoid refactoring file and variable/class names according to the new component name |
792
792
  | `--no-link` | | avoid saving a reference to the original component |
793
+ | `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
793
794
 
794
795
  ---
795
796
 
@@ -1505,6 +1506,7 @@ to mark components as deleted on the remote scope, use "bit delete".
1505
1506
  | `--path <relative-path>` | `-p` | relative path in the workspace to place new component in. by default, the directory of the new component is from your workspace's "defaultScope" value |
1506
1507
  | `--refactor` | `-r` | update the import/require statements in all dependent components (in the same workspace) |
1507
1508
  | `--preserve` | | avoid renaming files and variables/classes according to the new component name |
1509
+ | `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
1508
1510
 
1509
1511
  ---
1510
1512
 
@@ -1640,6 +1642,7 @@ as a result of this change
1640
1642
  | **Option** | **Option alias** | **Description** |
1641
1643
  | ------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------- |
1642
1644
  | `--refactor` | `-r` | update the import statements in all dependent components to the new package name (that contains the new owner name) |
1645
+ | `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
1643
1646
 
1644
1647
  ### scope fork
1645
1648
 
@@ -1647,6 +1650,10 @@ as a result of this change
1647
1650
 
1648
1651
  **Description**: fork all components of the original-scope and refactor the source-code to use the new scope name
1649
1652
 
1653
+ | **Option** | **Option alias** | **Description** |
1654
+ | ---------- | :--------------: | --------------------------------------------------------- |
1655
+ | `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
1656
+
1650
1657
  ---
1651
1658
 
1652
1659
  ## scope-config
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: 'Bit command synopses. Bit version: 0.2.32'
2
+ description: 'Bit command synopses. Bit version: 0.2.34'
3
3
  labels: ['cli', 'mdx', 'docs']
4
4
  ---
5
5
 
@@ -1039,6 +1039,11 @@
1039
1039
  "r",
1040
1040
  "refactor",
1041
1041
  "update the import statements in all dependent components to the new package name (that contains the new owner name)"
1042
+ ],
1043
+ [
1044
+ "",
1045
+ "ast",
1046
+ "EXPERIMENTAL. use ast to transform files instead of regex"
1042
1047
  ]
1043
1048
  ],
1044
1049
  "description": "Renames the owner part of the scope-name for all components with the specified 'current owner name'",
@@ -1056,7 +1061,13 @@
1056
1061
  },
1057
1062
  {
1058
1063
  "name": "fork <original-scope> <new-scope>",
1059
- "options": [],
1064
+ "options": [
1065
+ [
1066
+ "",
1067
+ "ast",
1068
+ "EXPERIMENTAL. use ast to transform files instead of regex"
1069
+ ]
1070
+ ],
1060
1071
  "description": "fork all components of the original-scope and refactor the source-code to use the new scope name",
1061
1072
  "group": "development"
1062
1073
  }
@@ -2939,6 +2950,65 @@
2939
2950
  }
2940
2951
  ]
2941
2952
  },
2953
+ {
2954
+ "name": "log <id>",
2955
+ "alias": "",
2956
+ "options": [
2957
+ [
2958
+ "r",
2959
+ "remote",
2960
+ "show log of a remote component"
2961
+ ],
2962
+ [
2963
+ "",
2964
+ "parents",
2965
+ "show parents and lanes data"
2966
+ ],
2967
+ [
2968
+ "o",
2969
+ "one-line",
2970
+ "show each log entry in one line"
2971
+ ],
2972
+ [
2973
+ "j",
2974
+ "json",
2975
+ "json format"
2976
+ ]
2977
+ ],
2978
+ "description": "show components(s) version history",
2979
+ "extendedDescription": "",
2980
+ "group": "info",
2981
+ "private": false,
2982
+ "remoteOp": true,
2983
+ "skipWorkspace": true,
2984
+ "arguments": [
2985
+ {
2986
+ "name": "id",
2987
+ "description": "component-id or component-name"
2988
+ }
2989
+ ]
2990
+ },
2991
+ {
2992
+ "name": "log-file <filepath>",
2993
+ "alias": "",
2994
+ "options": [
2995
+ [
2996
+ "o",
2997
+ "one-line",
2998
+ "show each log entry in one line"
2999
+ ]
3000
+ ],
3001
+ "description": "EXPERIMENTAL. show file history",
3002
+ "extendedDescription": "",
3003
+ "group": "info",
3004
+ "private": false,
3005
+ "arguments": [
3006
+ {
3007
+ "name": "filepath",
3008
+ "description": "file path relative to the workspace"
3009
+ }
3010
+ ]
3011
+ },
2942
3012
  {
2943
3013
  "name": "test [component-pattern]",
2944
3014
  "alias": "at",
@@ -4287,65 +4357,6 @@
4287
4357
  "private": false,
4288
4358
  "skipWorkspace": true
4289
4359
  },
4290
- {
4291
- "name": "log <id>",
4292
- "alias": "",
4293
- "options": [
4294
- [
4295
- "r",
4296
- "remote",
4297
- "show log of a remote component"
4298
- ],
4299
- [
4300
- "",
4301
- "parents",
4302
- "show parents and lanes data"
4303
- ],
4304
- [
4305
- "o",
4306
- "one-line",
4307
- "show each log entry in one line"
4308
- ],
4309
- [
4310
- "j",
4311
- "json",
4312
- "json format"
4313
- ]
4314
- ],
4315
- "description": "show components(s) version history",
4316
- "extendedDescription": "",
4317
- "group": "info",
4318
- "private": false,
4319
- "remoteOp": true,
4320
- "skipWorkspace": true,
4321
- "arguments": [
4322
- {
4323
- "name": "id",
4324
- "description": "component-id or component-name"
4325
- }
4326
- ]
4327
- },
4328
- {
4329
- "name": "log-file <filepath>",
4330
- "alias": "",
4331
- "options": [
4332
- [
4333
- "o",
4334
- "one-line",
4335
- "show each log entry in one line"
4336
- ]
4337
- ],
4338
- "description": "EXPERIMENTAL. show file history",
4339
- "extendedDescription": "",
4340
- "group": "info",
4341
- "private": false,
4342
- "arguments": [
4343
- {
4344
- "name": "filepath",
4345
- "description": "file path relative to the workspace"
4346
- }
4347
- ]
4348
- },
4349
4360
  {
4350
4361
  "name": "deprecate <component-name>",
4351
4362
  "alias": "d",
@@ -4403,6 +4414,11 @@
4403
4414
  "",
4404
4415
  "preserve",
4405
4416
  "avoid renaming files and variables/classes according to the new component name"
4417
+ ],
4418
+ [
4419
+ "",
4420
+ "ast",
4421
+ "EXPERIMENTAL. use ast to transform files instead of regex"
4406
4422
  ]
4407
4423
  ],
4408
4424
  "description": "rename component. if tagged/exported, create a new component and deprecate the original component. otherwise just renames current component",
@@ -4465,6 +4481,11 @@
4465
4481
  "",
4466
4482
  "no-link",
4467
4483
  "avoid saving a reference to the original component"
4484
+ ],
4485
+ [
4486
+ "",
4487
+ "ast",
4488
+ "EXPERIMENTAL. use ast to transform files instead of regex"
4468
4489
  ]
4469
4490
  ],
4470
4491
  "description": "create a new component forked from an existing one (copies source files and configs)",
@@ -3676,7 +3676,20 @@ function MDXContent(_ref) {
3676
3676
  }), (0, _react2.mdx)("td", {
3677
3677
  parentName: "tr",
3678
3678
  "align": null
3679
- }, "avoid saving a reference to the original component")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "format"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3679
+ }, "avoid saving a reference to the original component")), (0, _react2.mdx)("tr", {
3680
+ parentName: "tbody"
3681
+ }, (0, _react2.mdx)("td", {
3682
+ parentName: "tr",
3683
+ "align": null
3684
+ }, (0, _react2.mdx)("inlineCode", {
3685
+ parentName: "td"
3686
+ }, "--ast")), (0, _react2.mdx)("td", {
3687
+ parentName: "tr",
3688
+ "align": "center"
3689
+ }), (0, _react2.mdx)("td", {
3690
+ parentName: "tr",
3691
+ "align": null
3692
+ }, "EXPERIMENTAL. use ast to transform files instead of regex")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "format"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3680
3693
  parentName: "p"
3681
3694
  }, "Description"), ": format components in the development workspace"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
3682
3695
  parentName: "p"
@@ -7550,7 +7563,20 @@ function MDXContent(_ref) {
7550
7563
  }), (0, _react2.mdx)("td", {
7551
7564
  parentName: "tr",
7552
7565
  "align": null
7553
- }, "avoid renaming files and variables/classes according to the new component name")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "reset"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
7566
+ }, "avoid renaming files and variables/classes according to the new component name")), (0, _react2.mdx)("tr", {
7567
+ parentName: "tbody"
7568
+ }, (0, _react2.mdx)("td", {
7569
+ parentName: "tr",
7570
+ "align": null
7571
+ }, (0, _react2.mdx)("inlineCode", {
7572
+ parentName: "td"
7573
+ }, "--ast")), (0, _react2.mdx)("td", {
7574
+ parentName: "tr",
7575
+ "align": "center"
7576
+ }), (0, _react2.mdx)("td", {
7577
+ parentName: "tr",
7578
+ "align": null
7579
+ }, "EXPERIMENTAL. use ast to transform files instead of regex")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "reset"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
7554
7580
  parentName: "p"
7555
7581
  }, "Description"), ": revert tagged or snapped versions for component(s)", (0, _react2.mdx)("br", {
7556
7582
  parentName: "p"
@@ -8177,13 +8203,60 @@ function MDXContent(_ref) {
8177
8203
  }, "-r")), (0, _react2.mdx)("td", {
8178
8204
  parentName: "tr",
8179
8205
  "align": null
8180
- }, "update the import statements in all dependent components to the new package name (that contains the new owner name)")))), (0, _react2.mdx)("h3", null, "scope fork"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
8206
+ }, "update the import statements in all dependent components to the new package name (that contains the new owner name)")), (0, _react2.mdx)("tr", {
8207
+ parentName: "tbody"
8208
+ }, (0, _react2.mdx)("td", {
8209
+ parentName: "tr",
8210
+ "align": null
8211
+ }, (0, _react2.mdx)("inlineCode", {
8212
+ parentName: "td"
8213
+ }, "--ast")), (0, _react2.mdx)("td", {
8214
+ parentName: "tr",
8215
+ "align": "center"
8216
+ }), (0, _react2.mdx)("td", {
8217
+ parentName: "tr",
8218
+ "align": null
8219
+ }, "EXPERIMENTAL. use ast to transform files instead of regex")))), (0, _react2.mdx)("h3", null, "scope fork"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
8181
8220
  parentName: "p"
8182
8221
  }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
8183
8222
  parentName: "p"
8184
8223
  }, "scope fork <original-scope> <new-scope>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
8185
8224
  parentName: "p"
8186
- }, "Description"), ": fork all components of the original-scope and refactor the source-code to use the new scope name"), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "scope-config"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
8225
+ }, "Description"), ": fork all components of the original-scope and refactor the source-code to use the new scope name"), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
8226
+ parentName: "table"
8227
+ }, (0, _react2.mdx)("tr", {
8228
+ parentName: "thead"
8229
+ }, (0, _react2.mdx)("th", {
8230
+ parentName: "tr",
8231
+ "align": null
8232
+ }, (0, _react2.mdx)("strong", {
8233
+ parentName: "th"
8234
+ }, "Option")), (0, _react2.mdx)("th", {
8235
+ parentName: "tr",
8236
+ "align": "center"
8237
+ }, (0, _react2.mdx)("strong", {
8238
+ parentName: "th"
8239
+ }, "Option alias")), (0, _react2.mdx)("th", {
8240
+ parentName: "tr",
8241
+ "align": null
8242
+ }, (0, _react2.mdx)("strong", {
8243
+ parentName: "th"
8244
+ }, "Description")))), (0, _react2.mdx)("tbody", {
8245
+ parentName: "table"
8246
+ }, (0, _react2.mdx)("tr", {
8247
+ parentName: "tbody"
8248
+ }, (0, _react2.mdx)("td", {
8249
+ parentName: "tr",
8250
+ "align": null
8251
+ }, (0, _react2.mdx)("inlineCode", {
8252
+ parentName: "td"
8253
+ }, "--ast")), (0, _react2.mdx)("td", {
8254
+ parentName: "tr",
8255
+ "align": "center"
8256
+ }), (0, _react2.mdx)("td", {
8257
+ parentName: "tr",
8258
+ "align": null
8259
+ }, "EXPERIMENTAL. use ast to transform files instead of regex")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "scope-config"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
8187
8260
  parentName: "p"
8188
8261
  }, "Description"), ": scope config management"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
8189
8262
  parentName: "p"