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>, 14 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
|
Rev | Line | |
---|
[f80ada8] | 1 | use strict; |
---|
| 2 | use warnings; |
---|
| 3 | |
---|
| 4 | # Completers for client state |
---|
| 5 | |
---|
| 6 | package BarnOwl::Complete::Client; |
---|
| 7 | |
---|
| 8 | use BarnOwl::Completion::Util qw(complete_flags); |
---|
| 9 | |
---|
| 10 | sub complete_command { return sort @BarnOwl::all_commands; } |
---|
| 11 | |
---|
| 12 | sub complete_help { |
---|
| 13 | my $ctx = shift; |
---|
| 14 | return complete_flags($ctx, |
---|
| 15 | [qw()], |
---|
| 16 | { |
---|
| 17 | }, |
---|
| 18 | \&complete_command |
---|
| 19 | ); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | BarnOwl::Completion::register_completer(help => \&complete_help); |
---|
| 23 | |
---|
| 24 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.