mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Moved menu files to be under /ui directory, added support for commands to Console!
This commit is contained in:
24
lib/ui/commands/help_command.rb
Normal file
24
lib/ui/commands/help_command.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
class IMICFPS
|
||||
class Commands
|
||||
class HelpCommand < Command
|
||||
def initialize
|
||||
end
|
||||
|
||||
def group
|
||||
:global
|
||||
end
|
||||
|
||||
def command
|
||||
:help
|
||||
end
|
||||
|
||||
def handle(arguments, console)
|
||||
console.stdin(usage)
|
||||
end
|
||||
|
||||
def usage
|
||||
"HELP\ncommand [arguments]\ncommand subcommand [argument]"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user