2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2019-08-25 23:55:59 -04:00
|
|
|
#include "frc2/command/PrintCommand.h"
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2019-11-05 20:52:49 -08:00
|
|
|
#include <wpi/raw_ostream.h>
|
|
|
|
|
|
2019-08-25 23:55:59 -04:00
|
|
|
using namespace frc2;
|
|
|
|
|
|
|
|
|
|
PrintCommand::PrintCommand(const wpi::Twine& message)
|
|
|
|
|
: CommandHelper{[str = message.str()] { wpi::outs() << str << "\n"; }, {}} {
|
2017-10-17 21:37:58 -07:00
|
|
|
}
|
2019-08-25 23:55:59 -04:00
|
|
|
|
2020-12-28 12:58:06 -08:00
|
|
|
bool PrintCommand::RunsWhenDisabled() const {
|
|
|
|
|
return true;
|
|
|
|
|
}
|