mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
18 lines
No EOL
345 B
C++
18 lines
No EOL
345 B
C++
#pragma once
|
|
|
|
#include "libs/CLI11.hpp"
|
|
|
|
namespace satdump
|
|
{
|
|
class CmdHandler
|
|
{
|
|
public:
|
|
const std::string cmd;
|
|
|
|
public:
|
|
CmdHandler(std::string cmd) : cmd(cmd) {}
|
|
|
|
virtual void reg(CLI::App *app) = 0;
|
|
virtual void run(CLI::App *app, CLI::App *subcom, bool is_gui) = 0;
|
|
};
|
|
} // namespace satdump
|