#!/bin/bash
#
# completion.sh
# Copyright (C) 2021 edgardleal <edgardleal@edgardleal-Latitude-3400>
#
# Distributed under terms of the MIT license.
# Git completion script: https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
# Bash variables: https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#Bash-Variables
# Reference: https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html#Programmable-Completion
#

_cloud-backup-commands()
{
  if [ "${#COMP_WORDS[@]}" != "2" ]; then
    return
  fi
  COMPREPLY+=($(compgen -W "backup list show" "${COMP_WORDS[1]}"))
}


complete -F _cloud-backup-commands
# ___complete -A directory cloud-backup
