From b64fae536f4f7043e03b12d2e6df8183c8a0f8ad Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 26 Feb 2024 11:41:58 +0300 Subject: Make changes required for CI --- bbot/worker/worker-options.hxx | 171 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 bbot/worker/worker-options.hxx (limited to 'bbot/worker/worker-options.hxx') diff --git a/bbot/worker/worker-options.hxx b/bbot/worker/worker-options.hxx new file mode 100644 index 0000000..15e5b66 --- /dev/null +++ b/bbot/worker/worker-options.hxx @@ -0,0 +1,171 @@ +// -*- C++ -*- +// +// This file was generated by CLI, a command line interface +// compiler for C++. +// + +#ifndef BBOT_WORKER_WORKER_OPTIONS_HXX +#define BBOT_WORKER_WORKER_OPTIONS_HXX + +// Begin prologue. +// +// +// End prologue. + +#include + +namespace bbot +{ + class worker_options + { + public: + worker_options (); + + // Return true if anything has been parsed. + // + bool + parse (int& argc, + char** argv, + bool erase = false, + ::bbot::cli::unknown_mode option = ::bbot::cli::unknown_mode::fail, + ::bbot::cli::unknown_mode argument = ::bbot::cli::unknown_mode::stop); + + bool + parse (int start, + int& argc, + char** argv, + bool erase = false, + ::bbot::cli::unknown_mode option = ::bbot::cli::unknown_mode::fail, + ::bbot::cli::unknown_mode argument = ::bbot::cli::unknown_mode::stop); + + bool + parse (int& argc, + char** argv, + int& end, + bool erase = false, + ::bbot::cli::unknown_mode option = ::bbot::cli::unknown_mode::fail, + ::bbot::cli::unknown_mode argument = ::bbot::cli::unknown_mode::stop); + + bool + parse (int start, + int& argc, + char** argv, + int& end, + bool erase = false, + ::bbot::cli::unknown_mode option = ::bbot::cli::unknown_mode::fail, + ::bbot::cli::unknown_mode argument = ::bbot::cli::unknown_mode::stop); + + bool + parse (::bbot::cli::scanner&, + ::bbot::cli::unknown_mode option = ::bbot::cli::unknown_mode::fail, + ::bbot::cli::unknown_mode argument = ::bbot::cli::unknown_mode::stop); + + // Option accessors. + // + const bool& + help () const; + + const bool& + version () const; + + const uint16_t& + verbose () const; + + bool + verbose_specified () const; + + const bool& + bootstrap () const; + + const bool& + startup () const; + + const bool& + systemd_daemon () const; + + const dir_path& + build () const; + + bool + build_specified () const; + + const dir_path& + environments () const; + + bool + environments_specified () const; + + const path& + env_script () const; + + bool + env_script_specified () const; + + const string& + env_target () const; + + bool + env_target_specified () const; + + const string& + tftp_host () const; + + bool + tftp_host_specified () const; + + // Print usage information. + // + static ::bbot::cli::usage_para + print_usage (::std::ostream&, + ::bbot::cli::usage_para = ::bbot::cli::usage_para::none); + + // Implementation details. + // + protected: + bool + _parse (const char*, ::bbot::cli::scanner&); + + private: + bool + _parse (::bbot::cli::scanner&, + ::bbot::cli::unknown_mode option, + ::bbot::cli::unknown_mode argument); + + public: + bool help_; + bool version_; + uint16_t verbose_; + bool verbose_specified_; + bool bootstrap_; + bool startup_; + bool systemd_daemon_; + dir_path build_; + bool build_specified_; + dir_path environments_; + bool environments_specified_; + path env_script_; + bool env_script_specified_; + string env_target_; + bool env_target_specified_; + string tftp_host_; + bool tftp_host_specified_; + }; +} + +// Print page usage information. +// +namespace bbot +{ + ::bbot::cli::usage_para + print_bbot_worker_usage (::std::ostream&, + ::bbot::cli::usage_para = ::bbot::cli::usage_para::none); +} + +#include + +// Begin epilogue. +// +// +// End epilogue. + +#endif // BBOT_WORKER_WORKER_OPTIONS_HXX -- cgit v1.1