Debian Codegraph @

bin/ppit

raw
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4 use FindBin;
5 use Path::Class;
6 use YAML;
7 use File::Temp;
8 use Pod::Usage;
9
10 use lib file( $FindBin::RealBin, '..', 'lib' )->stringify;
11 use Config::Pit;
12
13 ({
14 get => \&Config::Pit::pipe,
15 set => \&pit_set,
16 switch => \&pit_switch,
17 }->{(shift || '')} || \&pod2usage )->($ARGV[1]);
18
19 __END__
20
21 =head1 NAME
22
23 ppit - pit for perl
24
25 =head1 SYNOPSIS
26
27 $ ppit [get|set|switch] <value>
28 $ ppit help
29
30 Options:
31 get <name> => Get values of <name>.
32 set <name> => Config values of name with $EDITOR.
33 switch <profile> => Switch profile to <profile>.
34 help => show this manual
35
36 =head1 DESCRIPTION
37
38 pit command for Perl
39
40 =head1 AUTHOR
41
42 Kazuhiro Osawa
43
44 =head1 LICENSE
45
46 This library is free software; you can redistribute it and/or modify
47 it under the same terms as Perl itself.
48
49 =head1 SEE ALSO
50
51 L<http://lowreal.rubyforge.org/pit/>
52 L<Config::Pit>
53
54 =cut
55