diff --git a/CHANGELOG.D/1738.feature b/CHANGELOG.D/1738.feature new file mode 100644 index 000000000..b7a5d4aa0 --- /dev/null +++ b/CHANGELOG.D/1738.feature @@ -0,0 +1 @@ +Added output to `neuro disk rm` and `neuro secret rm` when `-v` flag is set. \ No newline at end of file diff --git a/neuromation/cli/disks.py b/neuromation/cli/disks.py index a877c0602..ccb0c72e0 100644 --- a/neuromation/cli/disks.py +++ b/neuromation/cli/disks.py @@ -1,3 +1,5 @@ +import click + from .formatters.disks import DiskFormatter, DisksFormatter from .formatters.utils import URIFormatter, uri_formatter from .parse_utils import parse_memory @@ -78,8 +80,9 @@ async def rm(root: Root, disk_id: str) -> None: """ Remove disk DISK_ID. """ - await root.client.disks.rm(disk_id) + if root.verbosity > 0: + click.echo(f"Disk with id '{disk_id}' was successfully removed.") disk.add_command(ls) diff --git a/neuromation/cli/secrets.py b/neuromation/cli/secrets.py index 575f2e359..3e43adcb9 100644 --- a/neuromation/cli/secrets.py +++ b/neuromation/cli/secrets.py @@ -51,6 +51,8 @@ async def rm(root: Root, key: str) -> None: """ await root.client.secrets.rm(key) + if root.verbosity > 0: + click.echo(f"Secret with key '{key}' was successfully removed") secret.add_command(ls)