@solidactions/cli 1.15.0 → 1.16.0

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.
@@ -142,6 +142,10 @@ async function docsPushWithConfig(dir, options, config) {
142
142
  if (options.type) {
143
143
  callArgs.type = options.type;
144
144
  }
145
+ if (options.folder) {
146
+ // Top-level base for every item; each item's relative_folder_path nests under it.
147
+ callArgs.folder_path = options.folder;
148
+ }
145
149
  if (options.dryRun) {
146
150
  callArgs.dry_run = true;
147
151
  }
package/dist/index.js CHANGED
@@ -465,10 +465,11 @@ docs
465
465
  .argument('<dir>', 'Path to the directory containing markdown files')
466
466
  .option('--on-conflict <mode>', 'Conflict resolution: skip|overwrite|rename (default: skip)', 'skip')
467
467
  .option('--type <slug>', 'Doc-type slug to apply to all uploaded docs')
468
+ .option('--folder <base>', 'Nest the whole upload under this base folder path in SA-Docs')
468
469
  .option('--dry-run', 'Preview what would be created without writing')
469
470
  .option('--json', 'Output result as JSON')
470
471
  .action(async (dir, options) => {
471
- await (0, docs_push_1.docsPush)(dir, { onConflict: options.onConflict, type: options.type, dryRun: options.dryRun, json: options.json });
472
+ await (0, docs_push_1.docsPush)(dir, { onConflict: options.onConflict, type: options.type, folder: options.folder, dryRun: options.dryRun, json: options.json });
472
473
  });
473
474
  program.parseAsync().catch((err) => {
474
475
  console.error(chalk_1.default.red(err.message ?? String(err)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidactions/cli",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "SolidActions CLI - Deploy and manage workflow automation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {