/instruct command: add forceGet argument. Document that it enables instruct mode if disabled.
| @@ -8563,7 +8563,7 @@ async function selectContextCallback(args, name) { | ||
| 8563 | 8563 | |
| 8564 | 8564 | async function selectInstructCallback(args, name) { |
| 8565 | 8565 | if (!name) { |
| 8566 | 8566 | return power_user.instruct.enabled || isTrueBoolean(args?.forceGet) ? power_user.instruct.preset : ''; |
| 8567 | 8567 | } |
| 8568 | 8568 | |
| 8569 | 8569 | const quiet = isTrueBoolean(args?.quiet); |
| @@ -9264,6 +9264,13 @@ jQuery(async function () { | ||
| 9264 | 9264 | defaultValue: 'false', |
| 9265 | 9265 | enumList: commonEnumProviders.boolean('trueFalse')(), |
| 9266 | 9266 | }), |
| 9267 | + SlashCommandNamedArgument.fromProps({ | |
| 9268 | + name: 'forceGet', | |
| 9269 | + description: 'Force getting a name even if instruct mode is disabled', | |
| 9270 | + typeList: [ARGUMENT_TYPE.BOOLEAN], | |
| 9271 | + defaultValue: 'false', | |
| 9272 | + enumList: commonEnumProviders.boolean('trueFalse')(), | |
| 9273 | + }), | |
| 9267 | 9274 | ], |
| 9268 | 9275 | unnamedArgumentList: [ |
| 9269 | 9276 | SlashCommandArgument.fromProps({ |
| @@ -9274,7 +9281,8 @@ jQuery(async function () { | ||
| 9274 | 9281 | ], |
| 9275 | 9282 | helpString: ` |
| 9276 | 9283 | <div> |
| 9277 | 9284 | Selects instruct mode template by name. Gets the currentEnables instruct templatemode if no name is provided and instruct modenot isalready enabled. |
| 9285 | + Gets the current instruct template if no name is provided and instruct mode is enabled or <code>forceGet=true</code> is passed. | |
| 9278 | 9286 | </div> |
| 9279 | 9287 | <div> |
| 9280 | 9288 | <strong>Example:</strong> |