App-sshwrap-hostcolor

 view release on metacpan or  search on metacpan

script/sshwrap-hostcolor  view on Meta::CPAN

use warnings;
use Log::ger;

use App::sshwrap::hostcolor qw(get_history_entry add_history_entry);
use AppLib::sshwrap;
use Getopt::Long qw(:config bundling no_ignore_case);
use XTerm::Util qw(get_term_bgcolor set_term_bgcolor);

my $userhost;
sub parse_cmdline {
    local @ARGV = @ARGV;
    local $SIG{__WARN__} = sub {};

    my %go_spec = map { $_ => sub {} } keys %AppLib::sshwrap::optspec;
    delete $go_spec{'{arg}'};
    $go_spec{'<>'} = sub {
        $userhost //= $_[0];
        #log_trace "Setting userhost to %s", $userhost;
    };
    GetOptions(%go_spec);
}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.526 second using v1.00-cache-2.02-grep-82fe00e-cpan-f5108d614456 )