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

Classes

struct  AliasGroup
 

Functions

const AliasGroup * FindAliasGroup (absl::string_view name)
 
bool IsHelpFlag (absl::string_view token)
 

Variables

constexpr AliasGroup kAliasGroups []
 
constexpr absl::string_view kUsageText
 
constexpr absl::string_view kCommonFlagsText
 
constexpr absl::string_view kHttpFlagsText
 
constexpr absl::string_view kExamplesText
 

Function Documentation

◆ FindAliasGroup()

const AliasGroup * yaze::cli::anonymous_namespace{cli.cc}::FindAliasGroup ( absl::string_view name)

Definition at line 30 of file cli.cc.

References FindAliasGroup(), and kAliasGroups.

Referenced by FindAliasGroup().

Here is the call graph for this function:

◆ IsHelpFlag()

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

Definition at line 39 of file cli.cc.

References IsHelpFlag().

Referenced by IsHelpFlag().

Here is the call graph for this function:

Variable Documentation

◆ kAliasGroups

constexpr AliasGroup yaze::cli::anonymous_namespace{cli.cc}::kAliasGroups[]
constexpr
Initial value:
= {
{"rom", "ROM subcommands", &ResolveRomSubcommand, &RomSubcommandUsage},
{"debug", "Debug subcommands", &ResolveDebugSubcommand,
}
absl::StatusOr< CommandInvocation > ResolveRomSubcommand(absl::Span< const std::string > args)
std::string RomSubcommandUsage()
absl::StatusOr< CommandInvocation > ResolveDebugSubcommand(absl::Span< const std::string > args)
std::string DebugSubcommandUsage()

Definition at line 24 of file cli.cc.

Referenced by FindAliasGroup().

◆ kUsageText

constexpr absl::string_view yaze::cli::anonymous_namespace{cli.cc}::kUsageText
constexpr
Initial value:
=
" z3ed [command] [flags]\n"
" z3ed help <command|category> # Scoped help\n"
" z3ed --export-schemas # JSON schemas for agents\n"
" z3ed --version # Show version\n"

Definition at line 43 of file cli.cc.

◆ kCommonFlagsText

constexpr absl::string_view yaze::cli::anonymous_namespace{cli.cc}::kCommonFlagsText
constexpr
Initial value:
=
" --rom=<path> Path to ROM file\n"
" --sandbox Run ROM commands in a sandbox copy\n"
" --quiet, -q Suppress output\n"
" --ai_provider=<name> AI provider (auto, ollama, gemini, openai,\n"
" anthropic, mock)\n"
" --ai_model=<name> Provider-specific model override\n"
" --version Show version\n"
" --self-test Run self-test diagnostics\n"
" --help <scope> Show help for command or category\n"
" --export-schemas Export command schemas as JSON\n"

Definition at line 49 of file cli.cc.

◆ kHttpFlagsText

constexpr absl::string_view yaze::cli::anonymous_namespace{cli.cc}::kHttpFlagsText
constexpr
Initial value:
=
" --http-port=<port> HTTP API server port (0=disabled)\n"
" (no command keeps server alive until Ctrl+C)\n"
" --http-host=<host> HTTP API bind address (default localhost)\n"
" --http-allow-commands Serve /api/v1/command/execute (runs any "
"command)\n"

Definition at line 61 of file cli.cc.

◆ kExamplesText

constexpr absl::string_view yaze::cli::anonymous_namespace{cli.cc}::kExamplesText
constexpr
Initial value:
=
" z3ed rom-info --rom=zelda3.sfc\n"
" z3ed rom read --address=0x1000 --length=16 --rom=zelda3.sfc\n"
" z3ed debug state\n"
" z3ed message-search --rom=zelda3.sfc --query=\"Master Sword\"\n"
" z3ed dungeon-export --rom=zelda3.sfc --id=1\n"

Definition at line 68 of file cli.cc.