blib/lib/App/Pastebin/Create2.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package App::Pastebin::Create2;
4 #ABSTRACT: Simple CLI App to create and upload to Pastebin.com
5 # FILE HOLDER/THIS IS COMMAND LINE APP, executable name is pastebin-create2
6 # The executable located in bin/
7 # type pastebin-create2 -h for usage
8 our $VERSION = '0.15'; # VERSION
9  
10 =pod
11  
12 =encoding UTF-8
13  
14 =head1 NAME
15  
16 App::Pastebin::Create2 - Simple CLI App to create and upload to Pastebin.com
17  
18 =head1 VERSION
19  
20 version 0.15
21  
22 =head1 SYNOPSIS
23  
24 pastebin-create --text 'TEXT' --format 'none' --expiry 10m --private 0 --desc 'A TITLE'
25  
26 =head1 Note
27  
28 This is a continuation of abandoned App::Pastebin::Create. So, please use this distribution instead of the halted module.
29  
30 =head1 Flags
31  
32 =head2 --text, -t
33  
34 REQUIRED
35  
36 This flag required to run the program (at minimum).
37  
38 Text to paste flag.
39  
40 =head2 --format, -f
41  
42 OPTIONAL
43  
44 Syntax highlighting choice, see here for list - L<WWW::Pastebin::PastebinCom::Create>
45  
46 =head2 --expiry, -e
47  
48 OPTIONAL
49  
50 DEFAULT TO: 30 days/1 month
51  
52 Your paste time to expired.
53  
54 Example: Never, 10m (10 minutes)
55  
56 =head2 --private, -p
57  
58 OPTIONAL
59  
60 Defaults to 1: make your pastes unlisted
61  
62 Change to any number other than 1 to make your paste, publicly available.
63  
64 =head2 --desc, -d
65  
66 OPTIONAL
67  
68 Your paste title description.
69  
70 =head1 Testing & Manual Installation
71  
72 perl Makefile.PL && make test
73
74 # install
75 make install
76  
77 # cpanm
78 cpanm App-Pastebin-Create2-[VERSION].tar.gz
79  
80 =head1 SEE ALSO
81  
82 L<https://metacpan.org/pod/WWW::Pastebin::PastebinCom::Create>
83  
84 L<https://metacpan.org/pod/App::Nopaste>
85  
86 =head1 AUTHOR
87  
88 faraco <skelic3@gmail.com>, mfzz <mfzz@cpan.org>
89  
90 =head1 COPYRIGHT AND LICENSE
91  
92 This software is copyright (c) 2017 by faraco <skelic3@gmail.com>, mfzz <mfzz@cpan.org>.
93  
94 This is free software; you can redistribute it and/or modify it under
95 the same terms as the Perl 5 programming language system itself.
96  
97 =cut
98  
99 __END__