completion.rst.inc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_completion:
  3. borg completion
  4. ---------------
  5. .. code-block:: none
  6. borg [common options] completion [options] SHELL
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+-----------+--------------------------------------------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+-----------+--------------------------------------------------------+
  12. | | ``SHELL`` | shell to generate completion for (one of: %(choices)s) |
  13. +-------------------------------------------------------+-----------+--------------------------------------------------------+
  14. | .. class:: borg-common-opt-ref |
  15. | |
  16. | :ref:`common_options` |
  17. +-------------------------------------------------------+-----------+--------------------------------------------------------+
  18. .. raw:: html
  19. <script type='text/javascript'>
  20. $(document).ready(function () {
  21. $('.borg-options-table colgroup').remove();
  22. })
  23. </script>
  24. .. only:: latex
  25. SHELL
  26. shell to generate completion for (one of: %(choices)s)
  27. :ref:`common_options`
  28. |
  29. Description
  30. ~~~~~~~~~~~
  31. This command prints a shell completion script for the given shell.
  32. Please note that for some dynamic completions (like archive IDs), the shell
  33. completion script will call borg to query the repository. This will work best
  34. if that call can be made without prompting for user input, so you may want to
  35. set BORG_REPO and BORG_PASSPHRASE environment variables.