@eventcatalog/cli 0.3.2 → 0.3.4
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/dist/cli/index.js +281 -92
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +281 -92
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli-docs.js +23 -3
- package/dist/cli-docs.js.map +1 -1
- package/dist/cli-docs.mjs +23 -3
- package/dist/cli-docs.mjs.map +1 -1
- package/package.json +4 -3
package/dist/cli-docs.mjs
CHANGED
|
@@ -1591,7 +1591,12 @@ var cliFunctions = [
|
|
|
1591
1591
|
description: "Include referenced resources (messages, channels, owners)"
|
|
1592
1592
|
},
|
|
1593
1593
|
{ name: "stdout", type: "boolean", required: false, description: "Print to stdout instead of writing a file" },
|
|
1594
|
-
{
|
|
1594
|
+
{
|
|
1595
|
+
name: "playground",
|
|
1596
|
+
type: "boolean",
|
|
1597
|
+
required: false,
|
|
1598
|
+
description: "Open the exported DSL in EventCatalog Modelling"
|
|
1599
|
+
},
|
|
1595
1600
|
{ name: "output", type: "string", required: false, description: "Output file path (defaults to <id>.ec or catalog.ec)" }
|
|
1596
1601
|
],
|
|
1597
1602
|
examples: [
|
|
@@ -1620,7 +1625,7 @@ var cliFunctions = [
|
|
|
1620
1625
|
command: "npx @eventcatalog/cli export --all --hydrate -o my-catalog.ec"
|
|
1621
1626
|
},
|
|
1622
1627
|
{
|
|
1623
|
-
description: "Export and open in
|
|
1628
|
+
description: "Export and open in EventCatalog Modelling",
|
|
1624
1629
|
command: "npx @eventcatalog/cli export --resource services --hydrate --playground"
|
|
1625
1630
|
}
|
|
1626
1631
|
]
|
|
@@ -1635,7 +1640,14 @@ var cliFunctions = [
|
|
|
1635
1640
|
args: [
|
|
1636
1641
|
{ name: "files", type: "string", required: false, description: "One or more .ec file paths to import" },
|
|
1637
1642
|
{ name: "stdin", type: "boolean", required: false, description: "Read DSL from stdin" },
|
|
1638
|
-
{ name: "dry-run", type: "boolean", required: false, description: "Preview resources without writing" }
|
|
1643
|
+
{ name: "dry-run", type: "boolean", required: false, description: "Preview resources without writing" },
|
|
1644
|
+
{
|
|
1645
|
+
name: "flat",
|
|
1646
|
+
type: "boolean",
|
|
1647
|
+
required: false,
|
|
1648
|
+
description: "Write resources in a flat structure (no nesting under domains/services)"
|
|
1649
|
+
},
|
|
1650
|
+
{ name: "no-init", type: "boolean", required: false, description: "Skip catalog initialization prompt" }
|
|
1639
1651
|
],
|
|
1640
1652
|
examples: [
|
|
1641
1653
|
{
|
|
@@ -1653,6 +1665,14 @@ var cliFunctions = [
|
|
|
1653
1665
|
{
|
|
1654
1666
|
description: "Preview what would be written or merged",
|
|
1655
1667
|
command: "npx @eventcatalog/cli import catalog.ec --dry-run"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
description: "Import without nested folders",
|
|
1671
|
+
command: "npx @eventcatalog/cli import catalog.ec --flat"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
description: "Import into an existing catalog directory without init prompts",
|
|
1675
|
+
command: "npx @eventcatalog/cli import catalog.ec --no-init -d ./existing-catalog"
|
|
1656
1676
|
}
|
|
1657
1677
|
]
|
|
1658
1678
|
}
|