mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-16 16:21:11 +02:00
prism-tui PoC
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Prism::Tui {
|
||||
|
||||
enum class Command {
|
||||
Run,
|
||||
ListDevices,
|
||||
Help,
|
||||
Version,
|
||||
};
|
||||
|
||||
struct Options {
|
||||
Command command = Command::Run;
|
||||
std::string deviceId;
|
||||
};
|
||||
|
||||
struct ParseResult {
|
||||
bool ok = false;
|
||||
Options options;
|
||||
std::string error;
|
||||
};
|
||||
|
||||
ParseResult parseArguments(const std::vector<std::string>& arguments);
|
||||
std::string usageText();
|
||||
|
||||
} // namespace Prism::Tui
|
||||
Reference in New Issue
Block a user