Class ResourcesLabelRemove
java.lang.Object
ai.wanaku.cli.main.commands.BaseCommand
ai.wanaku.cli.main.commands.resources.ResourcesLabelRemove
CLI command for removing labels from existing resources.
This command allows you to remove one or more labels from a resource without modifying its other properties. If a label key doesn't exist, it will be silently ignored.
Usage examples:
# Remove a single label wanaku resources label remove --name my-resource --label env # Remove multiple labels wanaku resources label remove --name my-resource -l env -l tier -l version # Remove labels from resources matching a label expression wanaku resources label remove --label-expression 'status=deprecated' --label temporary
- See Also:
-
Field Summary
FieldsFields inherited from class ai.wanaku.cli.main.commands.BaseCommand
authTokenOverride, EXIT_ERROR, EXIT_OK, noAuth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCall(org.jline.terminal.Terminal terminal, WanakuPrinter printer) Methods inherited from class ai.wanaku.cli.main.commands.BaseCommand
call, initAuthenticatedService, initService, initService
-
Field Details
-
host
-
-
Constructor Details
-
ResourcesLabelRemove
public ResourcesLabelRemove()
-
-
Method Details
-
doCall
- Specified by:
doCallin classBaseCommand- Throws:
Exception
-