source: perl/lib/BarnOwl/Complete/Client.pm @ 7cd5878

release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 7cd5878 was f80ada8, checked in by David Benjamin <davidben@mit.edu>, 12 years ago
Complete help command Put into new module for completions related to client state, since it's not really pertinent to zephyr-sending. Signed-off-by: David Benjamin <davidben@mit.edu>
  • Property mode set to 100644
File size: 432 bytes
Line 
1use strict;
2use warnings;
3
4# Completers for client state
5
6package BarnOwl::Complete::Client;
7
8use BarnOwl::Completion::Util qw(complete_flags);
9
10sub complete_command { return sort @BarnOwl::all_commands; }
11
12sub complete_help {
13    my $ctx = shift;
14    return complete_flags($ctx,
15        [qw()],
16        {
17        },
18        \&complete_command
19       );
20}
21
22BarnOwl::Completion::register_completer(help      => \&complete_help);
23
241;
Note: See TracBrowser for help on using the repository browser.