|
164 | 164 | // * (Required) A list of custom commands and/or built-in Rush commands that this parameter may
|
165 | 165 | // * be used with. The parameter will be appended to the shell command that Rush invokes.
|
166 | 166 | // */
|
167 |
| - // "associatedCommands": [ "build", "rebuild" ] |
| 167 | + // "associatedCommands": [ "build", "rebuild" ] |
168 | 168 | // },
|
169 | 169 | //
|
170 | 170 | // {
|
171 | 171 | // /**
|
172 | 172 | // * (Required) Determines the type of custom parameter.
|
173 |
| - // * A "flag" is a custom command-line parameter whose presence acts as an on/off switch. |
| 173 | + // * A "string" is a custom command-line parameter whose value is a simple text string. |
| 174 | + // */ |
| 175 | + // "parameterKind": "string", |
| 176 | + // "longName": "--my-string", |
| 177 | + // "description": "A custom string parameter for the \"my-global-command\" custom command", |
| 178 | + // |
| 179 | + // "associatedCommands": [ "my-global-command" ], |
| 180 | + // |
| 181 | + // /** |
| 182 | + // * The name of the argument, which will be shown in the command-line help. |
| 183 | + // * |
| 184 | + // * For example, if the parameter name is '--count" and the argument name is "NUMBER", |
| 185 | + // * then the command-line help would display "--count NUMBER". The argument name must |
| 186 | + // * be comprised of upper-case letters, numbers, and underscores. It should be kept short. |
| 187 | + // */ |
| 188 | + // "argumentName": "SOME_TEXT", |
| 189 | + // |
| 190 | + // /** |
| 191 | + // * If true, this parameter must be included with the command. The default is false. |
| 192 | + // */ |
| 193 | + // "required": false |
| 194 | + // }, |
| 195 | + // |
| 196 | + // { |
| 197 | + // /** |
| 198 | + // * (Required) Determines the type of custom parameter. |
| 199 | + // * A "choice" is a custom command-line parameter whose argument must be chosen from a list of |
| 200 | + // * allowable alternatives. |
174 | 201 | // */
|
175 | 202 | // "parameterKind": "choice",
|
176 | 203 | // "longName": "--my-choice",
|
|
179 | 206 | // "associatedCommands": [ "my-global-command" ],
|
180 | 207 | //
|
181 | 208 | // /**
|
| 209 | + // * If true, this parameter must be included with the command. The default is false. |
| 210 | + // */ |
| 211 | + // "required": false, |
| 212 | + // |
| 213 | + // /** |
182 | 214 | // * Normally if a parameter is omitted from the command line, it will not be passed
|
183 | 215 | // * to the shell command. this value will be inserted by default. Whereas if a "defaultValue"
|
184 | 216 | // * is defined, the parameter will always be passed to the shell command, and will use the
|
|
0 commit comments