aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Source.pm
blob: 97434dda67cde6aae4e818e1d9ea5aad5c33d79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;