App-orgadb
view release on metacpan or search on metacpan
lib/App/orgadb/Select/Shell/Commands.pm view on Meta::CPAN
=head2 history
Usage:
history(%args) -> [$status_code, $reason, $payload, \%result_meta]
Show shell history.
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=item * B<append> => I<bool>
Append current session's history to history file.
=item * B<clear> => I<bool>
Clear history.
=item * B<read> => I<bool>
(Re-)read history from file.
=back
Returns an enveloped result (an array).
First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element
($reason) is a string containing error message, or something like "OK" if status is
200. Third element ($payload) is the actual result, but usually not present when enveloped result is an error response ($status_code is not 2xx). Fourth
element (%result_meta) is called result metadata and is optional, a hash
that contains extra information, much like how HTTP response headers provide additional metadata.
Return value: (any)
=head2 select
Usage:
select(%args) -> [$status_code, $reason, $payload, \%result_meta]
Select entriesE<sol>fieldsE<sol>subfields.
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=item * B<category> => I<str_or_re>
Find entry by string or regex search against the category title.
=item * B<clipboard> => I<str>
Whether to copy matching field values to clipboard.
If set to C<tee>, then will display matching fields to terminal as well as copy
matching field values to clipboard.
If set to C<only>, then will not display matching fields to terminal and will
only copy matching field values to clipboard.
Mnemonic for short option C<-y> and C<-Y>: I<y>ank as in Emacs (C<C-y>).
=item * B<count> => I<true>
Return just the number of matching entries instead of showing them.
=item * B<detail> => I<bool>
Instead of showing matching field values, display the whole entry.
Mnemonic for shortcut option C<-l>: the option C<-l> is usually used for the short
version of C<--detail>, as in I<ls> Unix command.
=item * B<entry> => I<str_or_re>
Find entry by string or regex search against its title.
=item * B<entry_match_mode> => I<str> (default: "default")
How entry should be matched.
The default matching mode is as follow:
str Substring matching
/re/ Regular expression matching
If matching mode is set to C<exact>, then matching will be done by string
equality test. This mode is basically a shorter alternative to having to
specify:
/^\Qre\E$/
Matching mode C<exact-ci> is like C<exact> except case-insensitive. It is
equivalent to:
/^\Qre\E$/i
=item * B<field_match_mode> => I<str> (default: "default")
How entry should be matched.
The default matching mode is as follow:
str Substring matching
/re/ Regular expression matching
If matching mode is set to C<exact>, then matching will be done by string
equality test. This mode is basically a shorter alternative to having to
specify:
/^\Qre\E$/
Matching mode C<exact-ci> is like C<exact> except case-insensitive. It is
equivalent to:
/^\Qre\E$/i
=item * B<field_value_formatter_rules> => I<array[hash]>
( run in 1.457 second using v1.01-cache-2.11-cpan-2398b32b56e )