Line | |
---|
1 | # ------------------------------------------------------------------------------ |
---|
2 | # (C) Crown copyright Met Office. All rights reserved. |
---|
3 | # For further details please refer to the file COPYRIGHT.txt |
---|
4 | # which you should have received as part of this distribution. |
---|
5 | # ------------------------------------------------------------------------------ |
---|
6 | use strict; |
---|
7 | use warnings; |
---|
8 | |
---|
9 | package Fcm::CLI::Invoker::CM; |
---|
10 | use base qw{Fcm::CLI::Invoker}; |
---|
11 | |
---|
12 | use Fcm::Cm qw{cli}; |
---|
13 | |
---|
14 | ################################################################################ |
---|
15 | # Invokes the sub-system |
---|
16 | sub invoke { |
---|
17 | my ($self) = @_; |
---|
18 | return cli($self->get_command(), @ARGV); |
---|
19 | } |
---|
20 | |
---|
21 | 1; |
---|
22 | __END__ |
---|
23 | |
---|
24 | =head1 NAME |
---|
25 | |
---|
26 | Fcm::CLI::Invoker::CM |
---|
27 | |
---|
28 | =head1 SYNOPSIS |
---|
29 | |
---|
30 | use Fcm::CLI::Invoker::CM; |
---|
31 | $invoker = Fcm::CLI::Invoker::CM->new(); |
---|
32 | $invoker->invoke(); |
---|
33 | |
---|
34 | =head1 DESCRIPTION |
---|
35 | |
---|
36 | This class extends L<Fcm::CLI::Invoker|Fcm::CLI::Invoker> an inherits all its |
---|
37 | methods. An object of this class is used to invoke a command in the CM |
---|
38 | sub-system. |
---|
39 | |
---|
40 | It is worth noting that this is not yet a full implementation. |
---|
41 | |
---|
42 | =head1 METHODS |
---|
43 | |
---|
44 | See L<Fcm::CLI::Invoker|Fcm::CLI::Invoker> for a list of inherited methods. |
---|
45 | |
---|
46 | =over 4 |
---|
47 | |
---|
48 | =item invoke() |
---|
49 | |
---|
50 | Invokes a command in the CM sub-system. |
---|
51 | |
---|
52 | =back |
---|
53 | |
---|
54 | =head1 TO DO |
---|
55 | |
---|
56 | Bring the CM system into this framework. |
---|
57 | |
---|
58 | Unit tests. |
---|
59 | |
---|
60 | =head1 SEE ALSO |
---|
61 | |
---|
62 | L<Fcm::Cm|Fcm::Cm>, |
---|
63 | L<Fcm::CLI::Subcommand|Fcm::CLI::Subcommand> |
---|
64 | |
---|
65 | =head1 COPYRIGHT |
---|
66 | |
---|
67 | E<169> Crown copyright Met Office. All rights reserved. |
---|
68 | |
---|
69 | =cut |
---|
Note: See
TracBrowser
for help on using the repository browser.