lib/ronin/ui/cli/cli.rb in ronin-1.0.0 vs lib/ronin/ui/cli/cli.rb in ronin-1.1.0.rc1

- old
+ new

@@ -43,10 +43,12 @@ # @return [Hash] # The command-line names and paths of available Command classes. # # @since 1.0.0 # + # @api semipublic + # def CLI.commands if @commands.empty? commands_dir = File.join('lib',Commands.namespace_root) Installation.each_file_in(commands_dir,:rb) do |path| @@ -86,10 +88,12 @@ # CLI.command('auto-hack') # # => Ronin::UI::CLI::Commands::AutoHack # # @since 1.0.0 # + # @api semipublic + # def CLI.command(name) name = name.to_s unless (command = Commands.require_const(name)) raise(UnknownCommand,"unable to load the command #{name.dump}",caller) @@ -114,9 +118,11 @@ # # @return [true] # The command was successfully ran. # # @since 1.0.0 + # + # @api semipublic # def CLI.start(argv=ARGV) name = argv.first # run the default command if an option or no arguments were given