NAME
Astro::App::Satpass2::Macro::Command - Define a macro which consists of an array of commands
SYNOPSIS
No user-serviceable parts inside.
DESCRIPTION
This class is private to the Astro-App-Satpass2 distribution. Documentation is for the benefit of the author only.
METHODS
This class provides the following methods in addition to those if its superclass:
completion
my $completion = $self->completion( $text );
This method returns a reference to an array containing all completions defined by the 'completion'
argument to new()
that match $text
. If there are none, or if the 'completion'
argument was not specified, nothing is returned.
init
This method overrides the superclass method of the same name. In addition to the functionality of that method, The def
attribute is checked, and the implements
attribute populated.
ATTRIBUTES
This class adds the following attributes to the superclass:
def
This attribute is a reference to an array that contains the commands to be executed when the macro is called. Substitution is done on these as required.
The same-named method can be used to access this. The method returns an array in list context, or an array reference in scalar context. Either way the return is a copy of the definition; you can not access (and therefore modify) the commands issued by the macro using the data returned by this method.
SEE ALSO
The superclass, Astro::App::Satpass2::Macro.
SUPPORT
Support is by the author. Please file bug reports at https://rt.cpan.org/Public/Dist/Display.html?Name=Astro-App-Satpass2, https://github.com/trwyant/perl-Astro-App-Satpass2/issues, or in electronic mail to the author.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT AND LICENSE
Copyright (C) 2013-2024 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.