26 lines
568 B
C++
26 lines
568 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <expected>
|
|
#include <string>
|
|
|
|
#include <modulus.hpp>
|
|
|
|
#include <modulus/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{};
|
|
};
|
|
|
|
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>;
|
|
|
|
}
|