module Rubydex::CLI
Command-line entry point for the rdx executable. It handles the top-level flags, resolves the subcommand and delegates to it, which keeps exe/rdx a thin shim.
Subcommands live one per file in lib/rubydex/cli/command/ and declare the name they answer to (see {CLI::Command}). Both dispatch and the ‘rdx help` command list are driven by that declaration, so adding a subcommand means adding a file — there is no dispatch table or usage text to keep in step.
Constants
- FOOTER
- HEADER
- HELP_ENTRY
-
helpis served by the top-level flags rather than by aCommandsubclass, so its entry is listed here to keep it in the generated command list.
Public Class Methods
(?Array[String] argv) → void
Source
# File lib/rubydex/cli.rb, line 22 def start(argv = ARGV) return if handle_top_level_flags(argv) # Everything past this point needs the native extension. require "rubydex" dispatch(argv.shift, argv) end
Entry point used by exe/rdx.