mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 22:23:07 +00:00
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>
This commit is contained in:
parent
e4f605d6ac
commit
1693bd91c0
@ -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']),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user