From fcc13f9476a5a8a02413e6c163cf6315bc380f97 Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Fri, 29 May 2020 17:24:03 +0100 Subject: [PATCH] v12 preparations: Add feature switch for 'balena apps --verbose' Connects-to: #1770 Change-type: patch --- lib/actions-oclif/apps.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/actions-oclif/apps.ts b/lib/actions-oclif/apps.ts index 00ece3c4..db58f48a 100644 --- a/lib/actions-oclif/apps.ts +++ b/lib/actions-oclif/apps.ts @@ -21,6 +21,7 @@ import { stripIndent } from 'common-tags'; import Command from '../command'; import * as cf from '../utils/common-flags'; import { getBalenaSdk, getVisuals } from '../utils/lazy'; +import { isV12 } from '../utils/version'; interface ExtendedApplication extends Application { device_count?: number; @@ -49,7 +50,9 @@ export default class AppsCmd extends Command { help: cf.help, verbose: flags.boolean({ char: 'v', - description: 'add extra columns in the tabular output (SLUG)', + description: isV12() + ? 'No-op since release v12.0.0' + : 'add extra columns in the tabular output (SLUG)', }), }; @@ -83,7 +86,7 @@ export default class AppsCmd extends Command { getVisuals().table.horizontal(applications, [ 'id', 'app_name', - options.verbose ? 'slug' : '', + options.verbose || isV12() ? 'slug' : '', 'device_type', 'online_devices', 'device_count',