Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 21, 2025
1 parent dbcc411 commit a903f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nanosaur/swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def robot_remove(platform, params: Params, args):
robot = RobotList.load(params)._get_robot_by_idx(params.get('robot_idx', 0))
args.robot_name = robot.name

confirmation = input(
f"Are you sure you want to {TerminalFormatter.color_text('**remove**', color='red', bold=True)} the robot configuration for {TerminalFormatter.color_text(args.robot_name, color='green', bold=True)}? (yes/no): ")
formatted_robot_name = TerminalFormatter.color_text(args.robot_name, color='green', bold=True)
confirmation = input(f"Confirm {TerminalFormatter.color_text('remove', color='red', bold=True)} config for {formatted_robot_name}? (yes/no): ")
if confirmation.lower() == 'yes':
RobotList.remove_robot(params, params.get('robot_idx', 0))
print(TerminalFormatter.color_text("Robot configuration removed", color='green'))
Expand Down

0 comments on commit a903f4b

Please sign in to comment.