tdl completion bash

tdl completion bash #

Generate the autocompletion script for bash

Synopsis #

Generate the autocompletion script for the bash shell.

This script depends on the ‘bash-completion’ package. If it is not installed already, you can install it via your OS’s package manager.

To load completions in your current shell session:

source <(tdl completion bash)

To load completions for every new session, execute once:

Linux: #

tdl completion bash > /etc/bash_completion.d/tdl

macOS: #

tdl completion bash > $(brew --prefix)/etc/bash_completion.d/tdl

You will need to start a new shell for this setup to take effect.

tdl completion bash

Options #

  -h, --help              help for bash
      --no-descriptions   disable completion descriptions

Options inherited from parent commands #

      --debug                        enable debug mode
      --delay duration               delay between each task, zero means no delay
  -l, --limit int                    max number of concurrent tasks (default 2)
  -n, --ns string                    namespace for Telegram session (default "default")
      --ntp string                   ntp server host, if not set, use system time
      --pool int                     specify the size of the DC pool, zero means infinity (default 8)
      --proxy string                 proxy address, format: protocol://username:password@host:port
      --reconnect-timeout duration   Telegram client reconnection backoff timeout, infinite if set to 0 (default 5m0s)
      --storage stringToString       storage options, format: type=driver,key1=value1,key2=value2. Available drivers: [legacy,bolt,file] (default [type=bolt,path=/home/runner/.tdl/data])
  -t, --threads int                  max threads for transfer one item (default 4)

SEE ALSO #

  • tdl completion - Generate the autocompletion script for the specified shell