| 1 | package App::MCP::CLI::Command::version; | ||
| 2 | |||
| 3 | 29 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 29 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 29 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 29 | our $VERSION = qv('v0.0.1'); | |
| 8 | 29 | our $AUTHORITY = 'cpan:MANWAR'; | |
| 9 | |||
| 10 | 29 | ▶ | use App::MCP::CLI -command; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | =encoding utf8 | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | App::MCP::CLI::Command::version - Print the installed mcpcli version | ||
| 17 | |||
| 18 | =head1 VERSION | ||
| 19 | |||
| 20 | This module is distributed as part of L<App::MCP::CLI> v0.0.1. | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | mcpcli version | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | Prints C<mcpcli version X.Y.Z> and exits. C<mcpcli --version> (or C<-V>) does | ||
| 29 | the same without loading any sub-command. | ||
| 30 | |||
| 31 | =head1 INTERNAL METHODS | ||
| 32 | |||
| 33 | =head2 description | ||
| 34 | |||
| 35 | =head2 abstract | ||
| 36 | |||
| 37 | One-line description shown in the C<mcpcli commands> listing. | ||
| 38 | |||
| 39 | =head2 opt_spec | ||
| 40 | |||
| 41 | This command takes no options. | ||
| 42 | |||
| 43 | =head2 execute | ||
| 44 | |||
| 45 | Prints the version. | ||
| 46 | |||
| 47 | =cut | ||
| 48 | |||
| 49 | 0 | ▶ | sub description { 'Print the mcpcli version' } |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 50 | 0 | ▶ | sub abstract { 'Print the mcpcli version' } |
|
Subroutine
abstract: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 51 | 1 | ▶ | sub opt_spec { () } |
|
Subroutine
opt_spec: called CC=1 SCAR=0.0
Pod
documented
| |||
| 52 | |||
| 53 | 1 | ▶ | sub execute { |
|
Subroutine
execute: called CC=1 SCAR=0.0
Pod
documented
| |||
| 54 | 1 | my ($self, $opt, $args) = @_; | |
| 55 | 1 | print "mcpcli version $App::MCP::CLI::VERSION\n"; | |
| 56 | } | ||
| 57 | |||
| 58 | =head1 SEE ALSO | ||
| 59 | |||
| 60 | L<App::MCP::CLI> | ||
| 61 | |||
| 62 | =head1 AUTHOR | ||
| 63 | |||
| 64 | Mohammad Sajid Anwar, C<< <mohammad.anwar at yahoo.com> >> | ||
| 65 | |||
| 66 | =head1 REPOSITORY | ||
| 67 | |||
| 68 | L<https://github.com/manwar/App-MCP-CLI> | ||
| 69 | |||
| 70 | =head1 BUGS | ||
| 71 | |||
| 72 | Please report any bugs or feature requests through the web interface at L<https://github.com/manwar/App-MCP-CLI/issues>. | ||
| 73 | I will be notified and then you'll automatically be notified of progress on your | ||
| 74 | bug as I make changes. | ||
| 75 | |||
| 76 | =head1 SUPPORT | ||
| 77 | |||
| 78 | You can find documentation for this module with the perldoc command. | ||
| 79 | |||
| 80 | perldoc App::MCP::CLI | ||
| 81 | |||
| 82 | You can also look for information at: | ||
| 83 | |||
| 84 | =over 4 | ||
| 85 | |||
| 86 | =item * BUG Report | ||
| 87 | |||
| 88 | L<https://github.com/manwar/App-MCP-CLI/issues> | ||
| 89 | |||
| 90 | =item * Search MetaCPAN | ||
| 91 | |||
| 92 | L<http://metacpan.org/dist/App-MCP-CLI> | ||
| 93 | |||
| 94 | =back | ||
| 95 | |||
| 96 | =head1 LICENSE AND COPYRIGHT | ||
| 97 | |||
| 98 | Copyright (C) 2026 Mohammad Sajid Anwar. | ||
| 99 | |||
| 100 | This program is free software; you can redistribute it and / or modify it under | ||
| 101 | the terms of the the Artistic License (2.0). You may obtain a copy of the full | ||
| 102 | license at: | ||
| 103 | |||
| 104 | L<http://www.perlfoundation.org/artistic_license_2_0> | ||
| 105 | |||
| 106 | Any use, modification, and distribution of the Standard or Modified Versions is | ||
| 107 | governed by this Artistic License.By using, modifying or distributing the Package, | ||
| 108 | you accept this license. Do not use, modify, or distribute the Package, if you do | ||
| 109 | not accept this license. | ||
| 110 | |||
| 111 | If your Modified Version has been derived from a Modified Version made by someone | ||
| 112 | other than you,you are nevertheless required to ensure that your Modified Version | ||
| 113 | complies with the requirements of this license. | ||
| 114 | |||
| 115 | This license does not grant you the right to use any trademark, service mark, | ||
| 116 | tradename, or logo of the Copyright Holder. | ||
| 117 | |||
| 118 | This license includes the non-exclusive, worldwide, free-of-charge patent license | ||
| 119 | to make, have made, use, offer to sell, sell, import and otherwise transfer the | ||
| 120 | Package with respect to any patent claims licensable by the Copyright Holder that | ||
| 121 | are necessarily infringed by the Package. If you institute patent litigation | ||
| 122 | (including a cross-claim or counterclaim) against any party alleging that the | ||
| 123 | Package constitutes direct or contributory patent infringement,then this Artistic | ||
| 124 | License to you shall terminate on the date that such litigation is filed. | ||
| 125 | |||
| 126 | Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND | ||
| 127 | CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED | ||
| 128 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR | ||
| 129 | NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS | ||
| 130 | REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, | ||
| 131 | INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE | ||
| 132 | OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 133 | |||
| 134 | =cut | ||
| 135 | |||
| 136 | 29 | 1; # End of App::MCP::CLI::Command::version | |