line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Grizzly; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Grizzly - A command-line interface for looking up stock quote. |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.102'; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
208690
|
use strict; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
51
|
|
8
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
56
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
861
|
use App::Cmd::Setup -app; |
|
2
|
|
|
|
|
59124
|
|
|
2
|
|
|
|
|
15
|
|
11
|
|
|
|
|
|
|
1; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__END__ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=pod |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=encoding UTF-8 |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Grizzly - Grizzly - A command-line interface for looking up stock quote. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 VERSION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
version 0.102 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SYNOPSIS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
grizzly [options] |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Options: |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
news [stock symbol] |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
quote [stock symbol] |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
help |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
version |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 Options |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
news - Displays the stock news of a given symbol. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
quote - Displays the stock quote of a given symbol. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
help - Displays a help message on how to use Grizzly. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
version - Displays Grizzly's version number. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DESCRIPTION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Grizzly will output the stock quote of the given symbol. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Grizzly - A command-line interface for looking up stock quote. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 Setup |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 Installation |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
cpanm Grizzly |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 API Key |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
You will need to get a free API key from L<NewsAPI|https://newsapi.org/>. Afterwards you will need to set the NEWS_API_KEY environment variable to the API key. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 AUTHOR |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Nobunaga <nobunaga@cpan.org> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Nobunaga. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
MIT License |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 AUTHOR |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Nobunaga <nobunaga@cpan.org> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
This software is Copyright (c) 2021 by Nobunaga. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This is free software, licensed under: |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
The MIT (X11) License |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=cut |