<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    App::BashCompletionF - Backend for bash-completion-f script

VERSION
    This document describes version 0.02 of App::BashCompletionF (from Perl
    distribution App-BashCompletionF), released on 2014-10-31.

FUNCTIONS
  add_all_pc(%args) -&gt; [status, msg, result, meta]
    Find all scripts that use Perinci::CmdLine in specified dirs (or PATH)
    and add completion entries for them.

    Arguments ('*' denotes required arguments):

    *   dir =&gt; *array*

        Dir and file name(s) to search.

    *   file =&gt; *str*

        Use alternate location for the bash-completion-f file.

        By default, the "complete" scripts are put in a file either in
        "/etc/bash-completion-f" (if running as root) or
        "~/.bash-completion-f" (if running as normal user). This option sets
        another location.

    Return value:

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (result) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

     (any)

  add_entries_pc(%args) -&gt; [status, msg, result, meta]
    Add completion entries for Perinci::CmdLine-based CLI programs.

    This is a shortcut for "add_entry". Doing:

     % bash-completion-f add-pc foo bar baz

    will be the same as:

     % bash-completion-f add --id foo 'complete -C foo foo'
     % bash-completion-f add --id bar 'complete -C bar bar'
     % bash-completion-f add --id baz 'complete -C baz baz'

    Arguments ('*' denotes required arguments):

    *   file =&gt; *str*

        Use alternate location for the bash-completion-f file.

        By default, the "complete" scripts are put in a file either in
        "/etc/bash-completion-f" (if running as root) or
        "~/.bash-completion-f" (if running as normal user). This option sets
        another location.

    *   program* =&gt; *array*

        Program name(s) to add.

    Return value:

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (result) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

     (any)

  add_entry(%args) -&gt; [status, msg, result, meta]
    Add a completion entry.

    Arguments ('*' denotes required arguments):

    *   content* =&gt; *str*

        Entry content (the actual "complete ..." bash command).

    *   file =&gt; *str*

        Use alternate location for the bash-completion-f file.

        By default, the "complete" scripts are put in a file either in
        "/etc/bash-completion-f" (if running as root) or
        "~/.bash-completion-f" (if running as normal user). This option sets
        another location.

    *   id* =&gt; *str*

        Entry ID, for marker (usually command name).

    Return value:

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (result) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

     (any)

  clean_entries(%args) -&gt; [status, msg, result, meta]
    Delete entries for commands that are not in PATH.

    Sometimes when a program gets uninstalled, it still leaves completion
    entry. This subcommand will search all entries for commands that are no
    longer found in PATH and remove them.

    Arguments ('*' denotes required arguments):

    *   file =&gt; *str*

        Use alternate location for the bash-completion-f file.

        By default, the "complete" scripts are put in a file either in
        "/etc/bash-completion-f" (if running as root) or
        "~/.bash-completion-f" (if running as normal user). This option sets
        another location.

    Return value:

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (result) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

     (any)

  list_entries(%args) -&gt; [status, msg, result, meta]
    Arguments ('*' denotes required arguments):

    *   detail =&gt; *bool*

    *   file =&gt; *str*

        Use alternate location for the bash-completion-f file.

        By default, the "complete" scripts are put in a file either in
        "/etc/bash-completion-f" (if running as root) or
        "~/.bash-completion-f" (if running as normal user). This option sets
        another location.

    Return value:

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (result) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

     (any)

  remove_all_entries(%args) -&gt; [status, msg, result, meta]
    Remove all entries.

    Arguments ('*' denotes required arguments):

    *   file =&gt; *str*

        Use alternate location for the bash-completion-f file.

        By default, the "complete" scripts are put in a file either in
        "/etc/bash-completion-f" (if running as root) or
        "~/.bash-completion-f" (if running as normal user). This option sets
        another location.

    Return value:

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (result) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

     (any)

  remove_entries(%args) -&gt; [status, msg, result, meta]
    Arguments ('*' denotes required arguments):

    *   file =&gt; *str*

        Use alternate location for the bash-completion-f file.

        By default, the "complete" scripts are put in a file either in
        "/etc/bash-completion-f" (if running as root) or
        "~/.bash-completion-f" (if running as normal user). This option sets
        another location.

    *   id* =&gt; *array*

        Entry ID(s).

    Return value:

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (result) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

     (any)

HOMEPAGE
    Please visit the project's homepage at
    &lt;https://metacpan.org/release/App-BashCompletionF&gt;.

SOURCE
    Source repository is at
    &lt;https://github.com/perlancar/perl-App-BashCompletionF&gt;.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    &lt;https://rt.cpan.org/Public/Dist/Display.html?Name=App-BashCompletionF&gt;

    When submitting a bug or request, please include a test-file or a patch
    to an existing test-file that illustrates the bug or desired feature.

AUTHOR
    perlancar &lt;perlancar@cpan.org&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2014 by perlancar@cpan.org.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

</pre></body></html>