diff --git a/lib/pry/command_set.rb b/lib/pry/command_set.rb index 11cc95b3..65101c5a 100644 --- a/lib/pry/command_set.rb +++ b/lib/pry/command_set.rb @@ -216,6 +216,11 @@ class Pry end + # @return [Array] The list of commands provided by the command set. + def list_commands + commands.keys + end + private def define_default_commands