contensis-cli 1.6.1-beta.13 → 1.6.1-beta.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contensis-cli",
3
- "version": "1.6.1-beta.13",
3
+ "version": "1.6.1-beta.14",
4
4
  "description": "A fully featured Contensis command line interface with a shell UI provides simple and intuitive ways to manage or profile your content in any NodeJS terminal.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +1,4 @@
1
- import { Argument, Command } from 'commander';
1
+ import { Argument, Command, Option } from 'commander';
2
2
  import { cliCommand } from '~/services/ContensisCliService';
3
3
  import { shell } from '~/shell';
4
4
 
@@ -178,6 +178,21 @@ Example call:
178
178
  '--entry-languages [entry-languages...]',
179
179
  'the entry languages to add to the role permissions'
180
180
  )
181
+ .addOption(
182
+ new Option(
183
+ '--block-actions [block-actions...]',
184
+ 'the block actions to add to the role permissions'
185
+ ).choices([
186
+ 'push',
187
+ 'release',
188
+ 'manageLive',
189
+ 'manualStartStop',
190
+ 'markAsBroken',
191
+ 'delete',
192
+ 'view',
193
+ '*',
194
+ ])
195
+ )
181
196
  .addHelpText(
182
197
  'after',
183
198
  `
@@ -194,6 +209,9 @@ Example call:
194
209
  actions: opts.entryActions || [],
195
210
  languages: opts.entryLanguages || [],
196
211
  })),
212
+ blocks: opts.blockActions
213
+ ? { actions: opts.blockActions }
214
+ : undefined,
197
215
  },
198
216
  }
199
217
  );
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "1.6.1-beta.13";
1
+ export const LIB_VERSION = "1.6.1-beta.14";