Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
add directive shortcut for description and default-value
Browse files Browse the repository at this point in the history
  • Loading branch information
RodgeFu committed Apr 7, 2020
1 parent 9d05cdd commit 64db25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/modifier/cliDirectiveAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export abstract class Action {
break;
case 'name':
case 'alias':
case 'description':
case 'default-value':
arr.push(new ActionSetProperty(value, key, () => { throw Error(`${key} missing in directive`) }))
break;
case 'replace':
Expand Down
2 changes: 2 additions & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ export namespace CliCommonSchema {
"poly-resource"?: ValueClause;
hitCount?: ValueClause;
name?: ValueClause;
description?: ValueClause;
"default-value"?: ValueClause;
/** in kebab-case */
setName?: SetNameClause;
replace?: ReplaceClause;
Expand Down

0 comments on commit 64db25b

Please sign in to comment.