class Cradare2::Plugin::CommandDispatcher

Overview

Extensible command dispatcher implementing the radare2 crystal command suite. Uses a command registry pattern supporting custom commands, aliases, and universal JSON (-j) output.

Defined in:

cradare2/plugin/dispatcher.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Client, prefix : String = "crystal") #

[View source]

Instance Method Detail

def client : Client #

[View source]
def command_list : Array(Command) #

[View source]
def commands : Hash(String, Command) #

[View source]
def dispatch(args : Array(String)) : String #

Dispatches an array of arguments.


[View source]
def dispatch(cmd_line : String) : String #

Dispatches a command string and returns the output string.


[View source]
def help : String #

Generates the interactive help menu.


[View source]
def prefix : String #

[View source]
def register(cmd : Command) : self #

Registers a command handler with the dispatcher.


[View source]