@teambit/harmony.content.cli-reference 2.0.989 → 2.0.990
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.
- package/cli-reference.docs.mdx +1 -1
- package/cli-reference.json +37 -0
- package/cli-reference.mdx +19 -0
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +37 -0
- package/dist/cli-reference.mdx.js +42 -0
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1776088668125.js → preview-1776104468271.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -130,6 +130,43 @@
|
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"name": "cat <component-id>",
|
|
135
|
+
"alias": "",
|
|
136
|
+
"options": [
|
|
137
|
+
[
|
|
138
|
+
"f",
|
|
139
|
+
"file <path>",
|
|
140
|
+
"show only the specified file (relative to component root)"
|
|
141
|
+
],
|
|
142
|
+
[
|
|
143
|
+
"c",
|
|
144
|
+
"config",
|
|
145
|
+
"show component configuration (env, dependencies) instead of source files"
|
|
146
|
+
],
|
|
147
|
+
[
|
|
148
|
+
"a",
|
|
149
|
+
"all",
|
|
150
|
+
"show both source files and configuration"
|
|
151
|
+
],
|
|
152
|
+
[
|
|
153
|
+
"j",
|
|
154
|
+
"json",
|
|
155
|
+
"output as JSON"
|
|
156
|
+
]
|
|
157
|
+
],
|
|
158
|
+
"description": "print source files or config of a component at a specific version",
|
|
159
|
+
"extendedDescription": "",
|
|
160
|
+
"group": "info-analysis",
|
|
161
|
+
"private": false,
|
|
162
|
+
"skipWorkspace": true,
|
|
163
|
+
"arguments": [
|
|
164
|
+
{
|
|
165
|
+
"name": "component-id",
|
|
166
|
+
"description": "component ID, optionally with @version (e.g. scope/name@1.0.0)"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
133
170
|
{
|
|
134
171
|
"name": "component-issues",
|
|
135
172
|
"alias": "",
|
package/cli-reference.mdx
CHANGED
|
@@ -305,6 +305,25 @@ with no args, only workspace's capsules are deleted
|
|
|
305
305
|
|
|
306
306
|
---
|
|
307
307
|
|
|
308
|
+
## cat
|
|
309
|
+
|
|
310
|
+
**Description**: print source files or config of a component at a specific version
|
|
311
|
+
|
|
312
|
+
`bit cat <component-id>`
|
|
313
|
+
|
|
314
|
+
| **Arg** | **Description** |
|
|
315
|
+
| -------------- | :------------------------------------------------------------: |
|
|
316
|
+
| `component-id` | component ID, optionally with @version (e.g. scope/name@1.0.0) |
|
|
317
|
+
|
|
318
|
+
| **Option** | **Option alias** | **Description** |
|
|
319
|
+
| --------------- | :--------------: | ------------------------------------------------------------------------ |
|
|
320
|
+
| `--file <path>` | `-f` | show only the specified file (relative to component root) |
|
|
321
|
+
| `--config` | `-c` | show component configuration (env, dependencies) instead of source files |
|
|
322
|
+
| `--all` | `-a` | show both source files and configuration |
|
|
323
|
+
| `--json` | `-j` | output as JSON |
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
308
327
|
## check-types
|
|
309
328
|
|
|
310
329
|
**Description**: validate TypeScript type correctness
|
package/dist/cli-reference.json
CHANGED
|
@@ -130,6 +130,43 @@
|
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"name": "cat <component-id>",
|
|
135
|
+
"alias": "",
|
|
136
|
+
"options": [
|
|
137
|
+
[
|
|
138
|
+
"f",
|
|
139
|
+
"file <path>",
|
|
140
|
+
"show only the specified file (relative to component root)"
|
|
141
|
+
],
|
|
142
|
+
[
|
|
143
|
+
"c",
|
|
144
|
+
"config",
|
|
145
|
+
"show component configuration (env, dependencies) instead of source files"
|
|
146
|
+
],
|
|
147
|
+
[
|
|
148
|
+
"a",
|
|
149
|
+
"all",
|
|
150
|
+
"show both source files and configuration"
|
|
151
|
+
],
|
|
152
|
+
[
|
|
153
|
+
"j",
|
|
154
|
+
"json",
|
|
155
|
+
"output as JSON"
|
|
156
|
+
]
|
|
157
|
+
],
|
|
158
|
+
"description": "print source files or config of a component at a specific version",
|
|
159
|
+
"extendedDescription": "",
|
|
160
|
+
"group": "info-analysis",
|
|
161
|
+
"private": false,
|
|
162
|
+
"skipWorkspace": true,
|
|
163
|
+
"arguments": [
|
|
164
|
+
{
|
|
165
|
+
"name": "component-id",
|
|
166
|
+
"description": "component ID, optionally with @version (e.g. scope/name@1.0.0)"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
133
170
|
{
|
|
134
171
|
"name": "component-issues",
|
|
135
172
|
"alias": "",
|
|
@@ -672,6 +672,48 @@ function _createMdxContent(props) {
|
|
|
672
672
|
}), " | ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
673
673
|
children: "-j"
|
|
674
674
|
}), " | json format |"]
|
|
675
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.hr, {}), "\n", (0, _jsxRuntime.jsx)(_components.h2, {
|
|
676
|
+
children: "cat"
|
|
677
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
678
|
+
children: [(0, _jsxRuntime.jsx)(_components.strong, {
|
|
679
|
+
children: "Description"
|
|
680
|
+
}), ": print source files or config of a component at a specific version"]
|
|
681
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
682
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
683
|
+
children: "bit cat <component-id>"
|
|
684
|
+
})
|
|
685
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
686
|
+
children: ["| ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
687
|
+
children: "Arg"
|
|
688
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
689
|
+
children: "Description"
|
|
690
|
+
}), " |\n| -------------- | :------------------------------------------------------------: |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
691
|
+
children: "component-id"
|
|
692
|
+
}), " | component ID, optionally with @version (e.g. scope/name@1.0.0) |"]
|
|
693
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
694
|
+
children: ["| ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
695
|
+
children: "Option"
|
|
696
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
697
|
+
children: "Option alias"
|
|
698
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
699
|
+
children: "Description"
|
|
700
|
+
}), " |\n| --------------- | :--------------: | ------------------------------------------------------------------------ |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
701
|
+
children: "--file <path>"
|
|
702
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
703
|
+
children: "-f"
|
|
704
|
+
}), " | show only the specified file (relative to component root) |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
705
|
+
children: "--config"
|
|
706
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
707
|
+
children: "-c"
|
|
708
|
+
}), " | show component configuration (env, dependencies) instead of source files |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
709
|
+
children: "--all"
|
|
710
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
711
|
+
children: "-a"
|
|
712
|
+
}), " | show both source files and configuration |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
713
|
+
children: "--json"
|
|
714
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
715
|
+
children: "-j"
|
|
716
|
+
}), " | output as JSON |"]
|
|
675
717
|
}), "\n", (0, _jsxRuntime.jsx)(_components.hr, {}), "\n", (0, _jsxRuntime.jsx)(_components.h2, {
|
|
676
718
|
children: "check-types"
|
|
677
719
|
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|