Skip to content

Commit

Permalink
fix: remove testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
std-microblock committed Oct 3, 2024
1 parent 0fd5a27 commit 05807f9
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions cli/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,6 @@ wakeActionToHumanReadable(goodnight::Daemon::Config::WakeupActions action) {
}

int main(int argc, char **argv) {

try {
goodnight::DeviceManager deviceManager;
if (auto res = deviceManager.switchHIDDevices(true); !res) {
std::cerr << "Error: " << res.error() << std::endl;
}

std::this_thread::sleep_for(std::chrono::seconds(5));

std::cout << "Restoring devices..." << std::endl;

if (auto res = deviceManager.restoreHIDDevices(); !res) {
std::cerr << "Error: " << res.error() << std::endl;
}
std::cout << "Done." << std::endl;
} catch (const std::exception &e) {
std::cerr << "Error: " << e.what() << std::endl;
return 1;
}

return false;

std::cout << R"(
___ _ __ _ _ _
/ _ \___ ___ __| | /\ \ (_) __ _| |__ | |_
Expand Down

0 comments on commit 05807f9

Please sign in to comment.