diff options
Diffstat (limited to 'Plugin')
-rw-r--r-- | Plugin/Source.pm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Plugin/Source.pm b/Plugin/Source.pm new file mode 100644 index 0000000..97434dd --- /dev/null +++ b/Plugin/Source.pm @@ -0,0 +1,24 @@ +#!/usr/bin/env perl + +package Plugin::Source; + +use strict; +use warnings; + +my %config; + +sub configure { + my $self = shift; + my $cmdref = shift; + my @source_commands = ("guts", "help", "source"); + $cmdref->($_, sub { $self->source(@_); }) for @source_commands; + return $self; +} + +sub source { + my ($self, $logger, $who, $where, $rest, @arguments) = @_; + my @urls = ("https://gitlab.com/dphillips/idalius"); + my $help_message = "My guts can be browsed at: "; + return $help_message . join " ", @urls; +} +1; |