Skip to content

Commit

Permalink
fix(devices): improves devices deletion message
Browse files Browse the repository at this point in the history
  • Loading branch information
RomilShah committed Jan 8, 2024
1 parent 82709f6 commit 27a7370
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion riocli/device/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def delete_device(
spinner.write('')

if failed_count == 0 and success_count == len(devices):
spinner_text = click.style('All devices deleted successfully.', Colors.GREEN)
if delete_all:
spinner_text = click.style('All devices deleted successfully.', Colors.GREEN)
else:
spinner_text = click.style('{} device(s) deleted successfully.'.format(len(devices)), Colors.GREEN)
spinner_char = click.style(Symbols.SUCCESS, Colors.GREEN)
elif success_count == 0 and failed_count == len(devices):
spinner_text = click.style('Failed to delete devices', Colors.YELLOW)
Expand Down

0 comments on commit 27a7370

Please sign in to comment.