App-OperaUtils
view release on metacpan or search on metacpan
script/opera-is-running view on Meta::CPAN
#!perl
# Note: This script is a CLI for Riap function /App/OperaUtils/opera_is_running
# and generated automatically using Perinci::CmdLine::Gen version 0.501
use 5.010001;
use strict;
use warnings;
use Log::ger;
use Perinci::CmdLine::Any;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2022-10-07'; # DATE
our $DIST = 'App-OperaUtils'; # DIST
our $VERSION = '0.008'; # VERSION
my $cmdline = Perinci::CmdLine::Any->new(
url => "/App/OperaUtils/opera_is_running",
program_name => "opera-is-running",
log => 1,
read_config => 0,
read_env => 0,
);
$cmdline->run;
# ABSTRACT: Check whether Opera is running
# PODNAME: opera-is-running
__END__
=pod
=encoding UTF-8
=head1 NAME
opera-is-running - Check whether Opera is running
=head1 VERSION
This document describes version 0.008 of opera-is-running (from Perl distribution App-OperaUtils), released on 2022-10-07.
=head1 SYNOPSIS
B<opera-is-running> [B<--debug>|B<--log-level>=I<level>|B<--quiet>|B<--trace>|B<--verbose>] [B<--format>=I<name>|B<--json>] [B<--(no)naked-res>] [B<--page-result>[=I<program>]|B<--view-result>[=I<program>]] [B<--quiet-arg>|B<-q>] [(B<--user>=I<unix::...
=head1 DESCRIPTION
Opera is defined as running if there are some Opera processes that are I<not>
in 'stop' state. In other words, if Opera has been started but is currently
paused, we do not say that it's running. If you want to check if Opera process
exists, you can use C<ps_opera>.
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--quiet-arg>, B<-q>
=item B<--user>=I<s@>
Kill browser processes that belong to certain user(s) only.
Can be specified multiple times.
=item B<--users-json>=I<s>
Kill browser processes that belong to certain user(s) only (JSON-encoded).
See C<--user>.
=back
=head2 Logging options
=over
=item B<--debug>
Shortcut for --log-level=debug.
=item B<--log-level>=I<s>
Set log level.
By default, these log levels are available (in order of increasing level of
importance, from least important to most): C<trace>, C<debug>, C<info>,
C<warn>/C<warning>, C<error>, C<fatal>. By default, the level is usually set to
C<warn>, which means that log statements with level C<info> and less important
levels will not be shown. To increase verbosity, choose C<info>, C<debug>, or
C<trace>.
For more details on log level and logging, as well as how new logging levels can
be defined or existing ones modified, see L<Log::ger>.
=item B<--quiet>
Shortcut for --log-level=error.
=item B<--trace>
Shortcut for --log-level=trace.
=item B<--verbose>
Shortcut for --log-level=info.
( run in 0.726 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )