App-Cme
view release on metacpan or search on metacpan
lib/App/Cme/Command/shell.pm view on Meta::CPAN
sub execute {
my ($self, $opt, $args) = @_;
my ($model, $inst, $root) = $self->init_cme($opt,$args);
$root->deep_check;
if ($opt->{bare}) {
require Config::Model::SimpleUI;
$self->run_shell_ui('Config::Model::SimpleUI', $inst) ;
}
else {
require Config::Model::TermUI;
$self->run_shell_ui('Config::Model::TermUI', $inst) ;
}
return;
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
App::Cme::Command::shell - Edit the configuration of an application with a shell
=head1 VERSION
version 1.047
=head1 SYNOPSIS
# simple shell like interface
cme shell dpkg-copyright
=head1 DESCRIPTION
Edit the configuration with a shell like interface. See L<Config::Model::TermUI>
for details. This is a shortcut for C<cme edit -ui shell>. See L<App::Cme::Command::shell>.
=head1 Common options
See L<cme/"Global Options">.
=head1 options
=over
=item -open-item
Open a specific item of the configuration when opening the editor
=item -bare
Use Term UI without auto-completion or font enhancements.
=back
=head1 SEE ALSO
L<cme>
=head1 AUTHOR
Dominique Dumont
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2014-2022 by Dominique Dumont <ddumont@cpan.org>.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
=cut
( run in 0.921 second using v1.01-cache-2.11-cpan-5735350b133 )