From 1693bd91c0bf135591dbbb7a84126796e990cd38 Mon Sep 17 00:00:00 2001 From: Scott Lowe <scott@balena.io> Date: Fri, 29 May 2020 17:07:53 +0200 Subject: [PATCH] v12 preparations: Add feature switch to remove id from 'tags' output Change-type: patch Connects-to: #1770 Signed-off-by: Scott Lowe <scott@balena.io> --- lib/actions-oclif/tags.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/actions-oclif/tags.ts b/lib/actions-oclif/tags.ts index 4774dacc..d71b2fe9 100644 --- a/lib/actions-oclif/tags.ts +++ b/lib/actions-oclif/tags.ts @@ -23,6 +23,7 @@ import * as cf from '../utils/common-flags'; import { getBalenaSdk, getVisuals } from '../utils/lazy'; import { disambiguateReleaseParam } from '../utils/normalization'; import { tryAsInteger } from '../utils/validation'; +import { isV12 } from '../utils/version'; interface FlagsDef { application?: string; @@ -111,7 +112,9 @@ export default class TagsCmd extends Command { } console.log( - getVisuals().table.horizontal(tags, ['id', 'tag_key', 'value']), + isV12() + ? getVisuals().table.horizontal(tags, ['tag_key', 'value']) + : getVisuals().table.horizontal(tags, ['id', 'tag_key', 'value']), ); }