@forge/cli-shared
9.10.0-next.89.10.0-next.9
out/ui/text.js~
out/ui/text.jsModified+9−1
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -464,8 +464,9 @@
},
defaultEnv: {
info: 'You do not have a default development environment set. This is required to run commands without specifying an environment. Make sure not to use sensitive information when naming your default development environment.',
prompt: 'Enter a name for your default development environment:',
+ notSetNonInteractive: `No environment was given and you don't have a default development environment. Pass --environment, or set a default with ${forge('settings', 'set', 'default-environment', '<environment>')}.`,
warn: `${chalk_1.default.bold('Warning:')} A development environment with this name already exists. If you continue, you may be using the same environment as another contributor.`,
confirm: 'Do you want to continue?',
setSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been set as your default development environment`,
createAndSetSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been created and set as your default development environment`,
@@ -1763,8 +1764,12 @@
defaultEnvironment: {
description: 'Change your default development environment',
info: `To view all environments for this app, run ${forge('environments', 'list')}.`
},
+ nonInteractive: {
+ description: 'Run commands without prompts: auto (when an agent runs the command, not in CI), on, or off. FORGE_NON_INTERACTIVE overrides it',
+ invalidValue: 'Invalid value specified. Valid values: auto, on, off'
+ },
customEffects: {
description: 'Enable custom spinner effects',
setupError: chalk_1.default.yellow('Failed to fetch custom spinner config. Custom spinner effects can be disabled via forge settings')
},
@@ -1836,9 +1841,12 @@
nonInteractive: {
description: 'run the command without input prompts',
error: {
missingRequiredOption: (command, requiredOptions) => `${command} --non-interactive requires ${requiredOptions.join(' ')}`,
- missingAnalyticsPreferences: `--non-interactive requires an analytics setting. Use ${forge('settings', 'set', 'usage-analytics', '<value>')}.`
+ missingAnalyticsPreferences: `--non-interactive requires an analytics setting. Use ${forge('settings', 'set', 'usage-analytics', '<value>')}.`,
+ promptReached: (question) => `${question ? `"${question.trim()}" needs an answer, but` : 'This command needs input, but'} the CLI is ` +
+ `running in non-interactive mode, so it can't ask. Pass the answer as an option. Run the command with ` +
+ `--help to see its options.`
}
},
customScopes: {
deploy: {