From 8be069dbdbc62a9f10f96fb657ac7561ee6cd3fe Mon Sep 17 00:00:00 2001 From: myarmolinsky Date: Thu, 26 Sep 2024 12:45:48 -0400 Subject: [PATCH] Deprecate `notes` command in favor of `device note` Change-type: patch --- docs/balena-cli.md | 2 +- src/commands/device/note.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/balena-cli.md b/docs/balena-cli.md index c4ac3b84..42e316ca 100644 --- a/docs/balena-cli.md +++ b/docs/balena-cli.md @@ -1655,7 +1655,7 @@ fleet name or slug (preferred) ### Aliases -- `notes` +- `notes` *(deprecated)* To use one of the aliases, replace `device note` with the alias. diff --git a/src/commands/device/note.ts b/src/commands/device/note.ts index 5be144c8..3e0b3f83 100644 --- a/src/commands/device/note.ts +++ b/src/commands/device/note.ts @@ -22,6 +22,7 @@ import { getBalenaSdk, stripIndent } from '../../utils/lazy'; export default class DeviceNoteCmd extends Command { public static aliases = ['notes']; + public static deprecateAliases = true; public static description = stripIndent` Set a device note.