[commands] Add requirements parameter to Commands.idle() (#5774)

This commit is contained in:
Ryan Blue
2023-10-17 22:52:48 -04:00
committed by GitHub
parent 3f3a169149
commit 579007ceb3
3 changed files with 7 additions and 5 deletions

View File

@@ -28,10 +28,11 @@ public final class Commands {
/**
* Constructs a command that does nothing until interrupted.
*
* @param requirements Subsystems to require
* @return the command
*/
public static Command idle() {
return run(() -> {});
public static Command idle(Subsystem... requirements) {
return run(() -> {}, requirements);
}
// Action Commands