App-BraveUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


  brave_is_running
    Usage:

     brave_is_running(%args) -> [$status_code, $reason, $payload, \%result_meta]

    Check whether Brave is running.

    Brave is defined as running if there are some Brave processes that are
    *not* in 'stop' state. In other words, if Brave has been started but is
    currently paused, we do not say that it's running. If you want to check
    if Brave process exists, you can use "ps_brave".

    This function is not exported.

    Arguments ('*' denotes required arguments):

    *   cmndline_pat => *re_from_str*

        Filter processes using regex against their cmndline.

lib/App/BraveUtils.pm  view on Meta::CPAN

    App::BrowserUtils::_do_browser('is_paused', 'brave', @_);
}

$SPEC{brave_is_running} = {
    v => 1.1,
    summary => "Check whether Brave is running",
    description => <<'_',

Brave is defined as running if there are some Brave processes that are *not*
in 'stop' state. In other words, if Brave has been started but is currently
paused, we do not say that it's running. If you want to check if Brave process
exists, you can use `ps_brave`.

_
    args => {
        %App::BrowserUtils::args_common,
        %App::BrowserUtils::argopt_quiet,
    },
};
sub brave_is_running {
    App::BrowserUtils::_do_browser('is_running', 'brave', @_);

lib/App/BraveUtils.pm  view on Meta::CPAN

=head2 brave_is_running

Usage:

 brave_is_running(%args) -> [$status_code, $reason, $payload, \%result_meta]

Check whether Brave is running.

Brave is defined as running if there are some Brave processes that are I<not>
in 'stop' state. In other words, if Brave has been started but is currently
paused, we do not say that it's running. If you want to check if Brave process
exists, you can use C<ps_brave>.

This function is not exported.

Arguments ('*' denotes required arguments):

=over 4

=item * B<cmndline_pat> => I<re_from_str>

script/brave-is-running  view on Meta::CPAN

B<brave-is-running> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<brave-is-running> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<brave-is-running> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbos...

=head1 DESCRIPTION

Brave is defined as running if there are some Brave processes that are I<not>
in 'stop' state. In other words, if Brave has been started but is currently
paused, we do not say that it's running. If you want to check if Brave process
exists, you can use C<ps_brave>.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over



( run in 1.525 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )