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