github.com/mckael/restic@v0.8.3/doc/zsh-completion.zsh (about)

     1  #compdef restic
     2  
     3  _arguments \
     4    '1: :->level1' \
     5    '2: :_files'
     6  case $state in
     7    level1)
     8      case $words[1] in
     9        restic)
    10          _arguments '1: :(backup cat check diff dump find forget generate help init key list ls migrate mount options prune rebuild-index restore snapshots tag unlock version)'
    11        ;;
    12        *)
    13          _arguments '*: :_files'
    14        ;;
    15      esac
    16    ;;
    17    *)
    18      _arguments '*: :_files'
    19    ;;
    20  esac