yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::anonymous_namespace{global_flags.cc} Namespace Reference

Classes

struct  ActionFlag
 

Functions

bool * FindActionFlag (absl::string_view token, GlobalOptions &options)
 
bool IsBoolLiteral (absl::string_view token)
 
absl::StatusOr< size_t > ApplyGlobalFlag (absl::Span< const std::string > args, size_t index)
 

Variables

constexpr absl::string_view kGlobalFlagNames []
 
constexpr ActionFlag kActionFlags []
 

Function Documentation

◆ FindActionFlag()

bool * yaze::cli::anonymous_namespace{global_flags.cc}::FindActionFlag ( absl::string_view token,
GlobalOptions & options )

Definition at line 58 of file global_flags.cc.

References FindActionFlag(), and kActionFlags.

Referenced by FindActionFlag().

Here is the call graph for this function:

◆ IsBoolLiteral()

bool yaze::cli::anonymous_namespace{global_flags.cc}::IsBoolLiteral ( absl::string_view token)

Definition at line 69 of file global_flags.cc.

References IsBoolLiteral().

Referenced by ApplyGlobalFlag(), and IsBoolLiteral().

Here is the call graph for this function:

◆ ApplyGlobalFlag()

absl::StatusOr< size_t > yaze::cli::anonymous_namespace{global_flags.cc}::ApplyGlobalFlag ( absl::Span< const std::string > args,
size_t index )

Definition at line 75 of file global_flags.cc.

References ApplyGlobalFlag(), equals(), IsBoolLiteral(), and kGlobalFlagNames.

Referenced by ApplyGlobalFlag().

Here is the call graph for this function:

Variable Documentation

◆ kGlobalFlagNames

constexpr absl::string_view yaze::cli::anonymous_namespace{global_flags.cc}::kGlobalFlagNames[]
constexpr
Initial value:
= {
"rom",
"quiet",
"sandbox",
"ai_provider",
"ai_model",
"gemini_api_key",
"anthropic_api_key",
"openai_base_url",
"ollama_host",
"gui_server_address",
"mesen_socket",
"prompt_version",
"use_function_calling",
"http_port",
"http_host",
"http_allow_commands",
}

Definition at line 23 of file global_flags.cc.

Referenced by ApplyGlobalFlag().

◆ kActionFlags

constexpr ActionFlag yaze::cli::anonymous_namespace{global_flags.cc}::kActionFlags[]
constexpr
Initial value:
= {
{"--version", &GlobalOptions::show_version},
{"-v", &GlobalOptions::show_version},
{"--list-commands", &GlobalOptions::list_commands},
{"--list", &GlobalOptions::list_commands},
{"--export-schemas", &GlobalOptions::export_schemas},
{"--export_schemas", &GlobalOptions::export_schemas},
{"--self-test", &GlobalOptions::self_test},
{"--selftest", &GlobalOptions::self_test},
}

Definition at line 47 of file global_flags.cc.

Referenced by FindActionFlag().