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