#include <cstdlib>
#include <iostream>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "absl/flags/declare.h"
#include "absl/flags/flag.h"
#include "absl/strings/match.h"
#include "absl/strings/str_format.h"
#include "rom/rom.h"
#include "cli/cli.h"
#include "cli/service/command_registry.h"
#include "cli/tui/tui.h"
#include "cli/z3ed_ascii_logo.h"
#include "yaze_config.h"
Go to the source code of this file.
|
| | ABSL_FLAG (bool, tui, false, "Launch interactive Text User Interface") |
| |
| | ABSL_DECLARE_FLAG (bool, quiet) |
| |
| | ABSL_FLAG (bool, version, false, "Show version information") |
| |
| | ABSL_FLAG (bool, self_test, false, "Run self-test diagnostics to verify CLI functionality") |
| |
| | ABSL_DECLARE_FLAG (std::string, rom) |
| |
| | ABSL_DECLARE_FLAG (std::string, ai_provider) |
| |
| | ABSL_DECLARE_FLAG (std::string, ai_model) |
| |
| | ABSL_DECLARE_FLAG (std::string, gemini_api_key) |
| |
| | ABSL_DECLARE_FLAG (std::string, ollama_host) |
| |
| | ABSL_DECLARE_FLAG (std::string, prompt_version) |
| |
| | ABSL_DECLARE_FLAG (bool, use_function_calling) |
| |
| void | anonymous_namespace{cli_main.cc}::PrintVersion () |
| |
| int | anonymous_namespace{cli_main.cc}::RunSelfTest () |
| | Run self-test diagnostics to verify CLI functionality.
|
| |
| void | anonymous_namespace{cli_main.cc}::PrintCompactHelp () |
| |
| ParsedGlobals | anonymous_namespace{cli_main.cc}::ParseGlobalFlags (int argc, char *argv[]) |
| |
| int | main (int argc, char *argv[]) |
| |
◆ ABSL_FLAG() [1/3]
| ABSL_FLAG |
( |
bool | , |
|
|
tui | , |
|
|
false | , |
|
|
"Launch interactive Text User Interface" | ) |
◆ ABSL_DECLARE_FLAG() [1/8]
| ABSL_DECLARE_FLAG |
( |
bool | , |
|
|
quiet | ) |
◆ ABSL_FLAG() [2/3]
| ABSL_FLAG |
( |
bool | , |
|
|
version | , |
|
|
false | , |
|
|
"Show version information" | ) |
◆ ABSL_FLAG() [3/3]
| ABSL_FLAG |
( |
bool | , |
|
|
self_test | , |
|
|
false | , |
|
|
"Run self-test diagnostics to verify CLI functionality" | ) |
◆ ABSL_DECLARE_FLAG() [2/8]
| ABSL_DECLARE_FLAG |
( |
std::string | , |
|
|
rom | ) |
◆ ABSL_DECLARE_FLAG() [3/8]
| ABSL_DECLARE_FLAG |
( |
std::string | , |
|
|
ai_provider | ) |
◆ ABSL_DECLARE_FLAG() [4/8]
| ABSL_DECLARE_FLAG |
( |
std::string | , |
|
|
ai_model | ) |
◆ ABSL_DECLARE_FLAG() [5/8]
| ABSL_DECLARE_FLAG |
( |
std::string | , |
|
|
gemini_api_key | ) |
◆ ABSL_DECLARE_FLAG() [6/8]
| ABSL_DECLARE_FLAG |
( |
std::string | , |
|
|
ollama_host | ) |
◆ ABSL_DECLARE_FLAG() [7/8]
| ABSL_DECLARE_FLAG |
( |
std::string | , |
|
|
prompt_version | ) |
◆ ABSL_DECLARE_FLAG() [8/8]
| ABSL_DECLARE_FLAG |
( |
bool | , |
|
|
use_function_calling | ) |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 439 of file cli_main.cc.
References yaze::cli::CommandRegistry::Instance(), yaze::Rom::LoadFromFile(), anonymous_namespace{cli_main.cc}::ParseGlobalFlags(), yaze::cli::ModernCLI::PrintCategoryHelp(), yaze::cli::ModernCLI::PrintCommandSummary(), anonymous_namespace{cli_main.cc}::PrintCompactHelp(), anonymous_namespace{cli_main.cc}::PrintVersion(), yaze::cli::Context::rom, yaze::cli::ModernCLI::Run(), anonymous_namespace{cli_main.cc}::RunSelfTest(), and yaze::cli::ShowMain().