All files / src/commands global.args.js

100% Statements 45/45
100% Branches 1/1
100% Functions 0/0
100% Lines 45/45

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x  
import { z } from 'zod';
import { defineArgument } from '../lib/define-argument.js';
import { addonIdOrName, appIdOrName } from '../parsers.js';
 
export const addonIdOrNameArg = defineArgument({
  schema: z.string().transform(addonIdOrName),
  description: 'Add-on ID (or name, if unambiguous)',
  placeholder: 'addon-id|addon-name',
});
 
export const envVariableNameArg = defineArgument({
  schema: z.string(),
  description: 'Name of the environment variable',
  placeholder: 'variable-name',
});
 
export const envVariableValueArg = defineArgument({
  schema: z.string(),
  description: 'Value of the environment variable',
  placeholder: 'variable-value',
});
 
export const appIdOrNameArg = defineArgument({
  schema: z.string().transform(appIdOrName),
  description: 'Application ID (or name, if unambiguous)',
  placeholder: 'app-id|app-name',
});
 
export const aliasArg = defineArgument({
  schema: z.string(),
  description: 'Application alias',
  placeholder: 'app-alias',
});
 
export const notificationNameArg = defineArgument({
  schema: z.string(),
  description: 'Notification name',
  placeholder: 'name',
});
 
export const notificationIdArg = defineArgument({
  schema: z.string(),
  description: 'Notification ID',
  placeholder: 'notification-id',
});