@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <expected>
|
||||
#include <string>
|
||||
|
||||
#include <modulus.hpp>
|
||||
|
||||
#include <types.hpp>
|
||||
|
||||
namespace vamp_zero {
|
||||
|
||||
struct command_line {
|
||||
std::string config_path{"/etc/product-vamp/vamp.json"};
|
||||
std::bool_t check_config{};
|
||||
std::bool_t health_check{};
|
||||
std::bool_t print_version{};
|
||||
std::bool_t exit_after_startup{};
|
||||
std::bool_t migrate{};
|
||||
};
|
||||
|
||||
auto parse_command_line(std::int32_t argc, std::char_t** argv) -> std::expected<vamp_zero::command_line, modulus::error>;
|
||||
auto run(vamp_zero::command_line command) -> std::expected<void, modulus::error>;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user