@displaydev/cli 0.8.0 → 0.8.1

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.
Files changed (2) hide show
  1. package/dist/main.js +3 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -250,7 +250,7 @@ function parseShowBrandingOrExit(raw) {
250
250
  }
251
251
  }
252
252
  // --- publish ---
253
- program.command('publish <path>').description('Publish an HTML or Markdown file. Use "-" to read from stdin (requires --id).').option('--name <name>', 'Artifact display name').option('--id <shortId>', 'Update existing artifact (new version)').option('--public', 'Make artifact publicly accessible (alias for --visibility public)').option('--company', 'Restrict artifact to company auth (alias for --visibility company)').option('--visibility <level>', 'public | company | private. "private" requires the Teams plan.').option('--share <email>', 'Add an email to sharedWith (repeatable; alias for --share-with)', collectEmails, []).option('--share-with <emails>', 'Comma-separated email list for sharedWith', function(val) {
253
+ program.command('publish <path>').description('Publish an HTML or Markdown file. Use "-" to read from stdin (requires --id).').option('--name <name>', 'Artifact display name').option('--id <shortId>', 'Update existing artifact (new version)').option('--public', 'Make artifact publicly accessible (alias for --visibility public)').option('--company', 'Restrict artifact to company auth (alias for --visibility company)').option('--visibility <level>', 'public | company | private. "private" requires the Pro plan.').option('--share <email>', 'Add an email to sharedWith (repeatable; alias for --share-with)', collectEmails, []).option('--share-with <emails>', 'Comma-separated email list for sharedWith', function(val) {
254
254
  return val.split(',').map(function(e) {
255
255
  return e.trim();
256
256
  }).filter(Boolean);
@@ -529,7 +529,7 @@ program.command('publish <path>').description('Publish an HTML or Markdown file.
529
529
  })();
530
530
  });
531
531
  // --- share ---
532
- program.command('share <shortId>').description('Change an artifact\'s visibility and/or add/remove shared-with emails.').option('--visibility <level>', 'public | company | private. "private" requires the Teams plan.').option('--add-users <emails>', 'Comma-separated emails to add to sharedWith', function(val) {
532
+ program.command('share <shortId>').description('Change an artifact\'s visibility and/or add/remove shared-with emails.').option('--visibility <level>', 'public | company | private. "private" requires the Pro plan.').option('--add-users <emails>', 'Comma-separated emails to add to sharedWith', function(val) {
533
533
  return val.split(',').map(function(e) {
534
534
  return e.trim();
535
535
  }).filter(Boolean);
@@ -584,7 +584,7 @@ program.command('share <shortId>').description('Change an artifact\'s visibility
584
584
  case 4:
585
585
  err = _state.sent();
586
586
  if (_instanceof(err, ApiError) && err.status === 402) {
587
- console.error('Error: Private visibility requires the Teams plan. Upgrade at https://display.dev/pricing');
587
+ console.error('Error: Private visibility requires the Pro plan. Upgrade at https://display.dev/pricing');
588
588
  process.exit(1);
589
589
  }
590
590
  if (_instanceof(err, ApiError) && err.status === 404) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@displaydev/cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dsp": "dist/main.js"