diff --git a/packages/cli/src/commands/app/build.ts b/packages/cli/src/commands/app/build.ts index 434e4338fb..104dddde01 100644 --- a/packages/cli/src/commands/app/build.ts +++ b/packages/cli/src/commands/app/build.ts @@ -26,7 +26,9 @@ export default async (cmd: Command) => { if (cmd.lax) { console.warn( chalk.yellow( - '[DEPRECATED] - The lax argument is deprecated and will be removed in the future.', + `[DEPRECATED] - The --lax option is deprecated and will be removed in the future. + Please open an issue towards https://github.com/backstage/backstage that describes your use-case if you need the flag to stay around + `, ), ); } diff --git a/packages/cli/src/commands/config/print.ts b/packages/cli/src/commands/config/print.ts index 4e7312b484..b640ee4f37 100644 --- a/packages/cli/src/commands/config/print.ts +++ b/packages/cli/src/commands/config/print.ts @@ -19,17 +19,8 @@ import { stringify as stringifyYaml } from 'yaml'; import { AppConfig, ConfigReader } from '@backstage/config'; import { loadCliConfig } from '../../lib/config'; import { ConfigSchema, ConfigVisibility } from '@backstage/config-loader'; -import chalk from 'chalk'; export default async (cmd: Command) => { - if (cmd.lax) { - console.warn( - chalk.yellow( - '[DEPRECATED] - The lax argument is deprecated and will be removed in the future.', - ), - ); - } - const { schema, appConfigs } = await loadCliConfig({ args: cmd.config, fromPackage: cmd.package, diff --git a/packages/cli/src/commands/config/validate.ts b/packages/cli/src/commands/config/validate.ts index 356af83c65..2d3ce60366 100644 --- a/packages/cli/src/commands/config/validate.ts +++ b/packages/cli/src/commands/config/validate.ts @@ -14,18 +14,10 @@ * limitations under the License. */ -import chalk from 'chalk'; import { Command } from 'commander'; import { loadCliConfig } from '../../lib/config'; export default async (cmd: Command) => { - if (cmd.lax) { - console.warn( - chalk.yellow( - '[DEPRECATED] - The lax argument is deprecated and will be removed in the future.', - ), - ); - } await loadCliConfig({ args: cmd.config, fromPackage: cmd.package, diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts index daabe212ed..4eb34823ce 100644 --- a/packages/cli/src/commands/index.ts +++ b/packages/cli/src/commands/index.ts @@ -30,7 +30,6 @@ export function registerCommands(program: CommanderStatic) { .command('app:build') .description('Build an app for a production release') .option('--stats', 'Write bundle stats to output directory') - // Deprecated .option( '--lax', '[DEPRECATED] - Do not require environment variables to be set', @@ -172,10 +171,7 @@ export function registerCommands(program: CommanderStatic) { '--package ', 'Only load config schema that applies to the given package', ) - .option( - '--lax', - '[DEPRECATED] - Do not require environment variables to be set', - ) + .option('--lax', 'Do not require environment variables to be set') .option('--frontend', 'Print only the frontend configuration') .option('--with-secrets', 'Include secrets in the printed configuration') .option( @@ -192,10 +188,7 @@ export function registerCommands(program: CommanderStatic) { '--package ', 'Only load config schema that applies to the given package', ) - .option( - '--lax', - '[DEPRECATED] - Do not require environment variables to be set', - ) + .option('--lax', 'Do not require environment variables to be set') .option('--frontend', 'Only validate the frontend configuration') .option(...configOption) .description(