line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::VTide::Command::List; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Created on: 2016-03-22 15:42:06 |
4
|
|
|
|
|
|
|
# Create by: Ivan Wills |
5
|
|
|
|
|
|
|
# $Id$ |
6
|
|
|
|
|
|
|
# $Revision$, $HeadURL$, $Date$ |
7
|
|
|
|
|
|
|
# $Revision$, $Source$, $Date$ |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
949
|
use Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
10
|
1
|
|
|
1
|
|
2338
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
11
|
1
|
|
|
1
|
|
5
|
use version; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
6
|
|
12
|
1
|
|
|
1
|
|
56
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
13
|
1
|
|
|
1
|
|
6
|
use English qw/ -no_match_vars /; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
14
|
1
|
|
|
1
|
|
357
|
use YAML::Syck; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
213
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
extends 'App::VTide::Command::Run'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our $VERSION = version->new('0.1.16'); |
19
|
|
|
|
|
|
|
our $NAME = 'list'; |
20
|
|
|
|
|
|
|
our $OPTIONS = [ 'number|n=s', 'verbose|v+', ]; |
21
|
0
|
|
|
0
|
1
|
|
sub details_sub { return ( $NAME, $OPTIONS ) } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub run { |
24
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# TODO: implement |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub auto_complete { |
32
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
App::VTide::Command::List - Create a list in a running App::VTide session |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This documentation refers to App::VTide::Command::List version 0.1.16 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SYNOPSIS |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
vtide list [-f|--force] |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
OPTIONS |
52
|
|
|
|
|
|
|
-n (int) The maximum number of list sessions to show (Default 10) |
53
|
|
|
|
|
|
|
-v --verbose Show more detailed output |
54
|
|
|
|
|
|
|
--help Show this help |
55
|
|
|
|
|
|
|
--man Show the full man page |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head3 C<run ()> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Run the command |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 C<auto_complete ()> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Auto completes sub-commands that can have help shown |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 C<details_sub ()> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Returns the commands details |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
There are no known bugs in this module. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Please report problems to Ivan Wills (ivan.wills@gmail.com). |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Patches are welcome. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 AUTHOR |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Ivan Wills - (ivan.wills@gmail.com) |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). |
96
|
|
|
|
|
|
|
All rights reserved. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it under |
99
|
|
|
|
|
|
|
the same terms as Perl itself. See L<perlartistic>. This program is |
100
|
|
|
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
101
|
|
|
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
102
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |