summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-01 16:17:42 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-01 16:17:42 +0200
commit165c0a09a0fe3f40f305f41411029f43ef339155 (patch)
treee2b0431cf04feb57b4f0b9c1698ec7389dd0df4a
parentnew instead of load; add readme (diff)
downloadnet-http-console-master.tar.gz
list all available methods master
-rw-r--r--lib/Net/HTTP/Console/Dispatcher/Help.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Net/HTTP/Console/Dispatcher/Help.pm b/lib/Net/HTTP/Console/Dispatcher/Help.pm
index 6f2c632..7efbcaf 100644
--- a/lib/Net/HTTP/Console/Dispatcher/Help.pm
+++ b/lib/Net/HTTP/Console/Dispatcher/Help.pm
@@ -80,6 +80,13 @@ EOF
 
         print $method->documentation;
     }
+
+    method _list_commands() {
+        my @methods = $self->application->api_object->meta->get_all_net_api_methods();
+        foreach my $method (@methods) {
+            print " - ".$method."\n";
+        }
+    }
 }
 
 1;