@cmflow/atlas 3.4.0-beta.28 → 3.4.0-beta.29

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/README.md CHANGED
@@ -242,7 +242,7 @@ For example, configure the endpoint used by the source:
242
242
  export default defineConfig({
243
243
  envs: {
244
244
  XM_API_URL: "https://xm.internal/openapi.json"
245
- },
245
+ }
246
246
  // …other Atlas options
247
247
  });
248
248
  ```
@@ -362,10 +362,10 @@ The inference pass only reads analysis files referenced by each route graph. Acc
362
362
  Push route artifacts to Directus with an explicit write flag:
363
363
 
364
364
  ```bash
365
- atlas --analysis-dir /path/to/api push .tmp/datasource-catalogue --write
365
+ atlas --analysis-dir /path/to/api push .tmp/datasource-catalogue --update
366
366
  ```
367
367
 
368
- Without `--write`, the command performs a dry run. Use `clean-orphans` to inspect Directus links that no longer reference an API or backend property.
368
+ Without `--update`, the command performs a dry run. Use `clean-orphans` to inspect Directus links that no longer reference an API or backend property.
369
369
 
370
370
  ## Command reference
371
371
 
@@ -5524,10 +5524,11 @@ function createPushStepClassifier() {
5524
5524
  };
5525
5525
  };
5526
5526
  }
5527
- var push_default = (program) => void program.command("push").argument("[catalogue-directory-or-route]", "Directory or route such as \"GET /v1/offers\"").option("--route <route>", "Push one route only, for example \"POST /v0/accommodations_arrangement/check\"").option("--write", "Persist changes to Directus", false).description("Push generated per-route YAML documents to Directus").action(async (catalogueDirectoryOrRoute, options) => {
5527
+ var push_default = (program) => void program.command("push").argument("[catalogue-directory-or-route]", "Directory or route such as \"GET /v1/offers\"").option("--route <route>", "Push one route only, for example \"POST /v0/accommodations_arrangement/check\"").option("--update", "Persist changes to Directus", false).description("Push generated per-route YAML documents to Directus").action(async (catalogueDirectoryOrRoute, options) => {
5528
5528
  intro("Datasource catalogue push");
5529
5529
  const { cwd } = getUserConfig();
5530
5530
  const progress = taskProgressService.createStepProgress(createPushStepClassifier());
5531
+ const update = options.update;
5531
5532
  try {
5532
5533
  const positionalRouteSelector = catalogueDirectoryOrRoute && isRouteSelector(catalogueDirectoryOrRoute) ? parseRouteSelector(catalogueDirectoryOrRoute) : void 0;
5533
5534
  if (options.route && positionalRouteSelector) throw new Error("Specify the route either as the positional argument or with --route, not both");
@@ -5537,9 +5538,9 @@ var push_default = (program) => void program.command("push").argument("[catalogu
5537
5538
  cwd,
5538
5539
  catalogueDirectory,
5539
5540
  routeSelector,
5540
- write: options.write
5541
+ write: update
5541
5542
  }));
5542
- progress.finish(options.write ? "Directus synchronization completed" : "Directus dry-run completed");
5543
+ progress.finish(update ? "Directus synchronization completed" : "Directus dry-run completed");
5543
5544
  note([
5544
5545
  `Input directory: ${pushResult.inputPath}`,
5545
5546
  `Route documents: ${pushResult.files.length}`,