diff --git a/docs/balena-cli.md b/docs/balena-cli.md index 5acb7516..cdc5605a 100644 --- a/docs/balena-cli.md +++ b/docs/balena-cli.md @@ -2416,10 +2416,6 @@ the path to the config.json file to inject ### Options -#### -t, --type TYPE - -ignored - no longer required - #### -d, --drive DRIVE path to OS image file (e.g. balena.img) or block device (e.g. /dev/disk2) @@ -2440,10 +2436,6 @@ Examples: ### Options -#### -t, --type TYPE - -ignored - no longer required - #### -d, --drive DRIVE path to OS image file (e.g. balena.img) or block device (e.g. /dev/disk2) @@ -2471,10 +2463,6 @@ Examples: ### Options -#### -t, --type TYPE - -ignored - no longer required - #### -d, --drive DRIVE path to OS image file (e.g. balena.img) or block device (e.g. /dev/disk2) @@ -2513,10 +2501,6 @@ the value of the config parameter to write ### Options -#### -t, --type TYPE - -ignored - no longer required - #### -d, --drive DRIVE path to OS image file (e.g. balena.img) or block device (e.g. /dev/disk2) diff --git a/lib/commands/config/inject.ts b/lib/commands/config/inject.ts index c262077a..58557571 100644 --- a/lib/commands/config/inject.ts +++ b/lib/commands/config/inject.ts @@ -57,7 +57,6 @@ export default class ConfigInjectCmd extends Command { public static usage = 'config inject '; public static flags: flags.Input = { - ...cf.deviceTypeIgnored, drive: cf.driveOrImg, help: cf.help, }; diff --git a/lib/commands/config/read.ts b/lib/commands/config/read.ts index d16d88ef..fae37747 100644 --- a/lib/commands/config/read.ts +++ b/lib/commands/config/read.ts @@ -47,7 +47,6 @@ export default class ConfigReadCmd extends Command { public static usage = 'config read'; public static flags: flags.Input = { - ...cf.deviceTypeIgnored, drive: cf.driveOrImg, help: cf.help, json: cf.json, diff --git a/lib/commands/config/reconfigure.ts b/lib/commands/config/reconfigure.ts index 3f4fe097..670d0e67 100644 --- a/lib/commands/config/reconfigure.ts +++ b/lib/commands/config/reconfigure.ts @@ -50,7 +50,6 @@ export default class ConfigReconfigureCmd extends Command { public static usage = 'config reconfigure'; public static flags: flags.Input = { - ...cf.deviceTypeIgnored, drive: cf.driveOrImg, advanced: flags.boolean({ description: 'show advanced commands', diff --git a/lib/commands/config/write.ts b/lib/commands/config/write.ts index f9e3dc5b..474bcbea 100644 --- a/lib/commands/config/write.ts +++ b/lib/commands/config/write.ts @@ -64,7 +64,6 @@ export default class ConfigWriteCmd extends Command { public static usage = 'config write '; public static flags: flags.Input = { - ...cf.deviceTypeIgnored, drive: cf.driveOrImg, help: cf.help, }; diff --git a/lib/utils/common-flags.ts b/lib/utils/common-flags.ts index 3046d233..6c623a84 100644 --- a/lib/utils/common-flags.ts +++ b/lib/utils/common-flags.ts @@ -19,7 +19,6 @@ import { flags } from '@oclif/command'; import { stripIndent } from './lazy'; import { lowercaseIfSlug } from './normalization'; -import { isV14 } from './version'; import type { IBooleanFlag } from '@oclif/parser/lib/flags'; import type { DataOutputOptions, DataSetOutputOptions } from '../framework'; @@ -97,19 +96,6 @@ export const deviceType = flags.string({ required: true, }); -export const deviceTypeIgnored = { - ...(isV14() - ? {} - : { - type: flags.string({ - description: 'ignored - no longer required', - char: 't', - required: false, - hidden: true, - }), - }), -}; - export const json: IBooleanFlag = flags.boolean({ char: 'j', description: 'produce JSON output instead of tabular output',