#compdef ayo

__ayo_cmd() {
  local -a list
  list=(
    professional:'<input> make professional'
    lame:'<input> make serious corporate'
    email:'<input> make casual-business'
    summarize:'<input> summarize given text | <url> summarize video using the subtitles provided | <url> summarize given article'
    summary:'<input> summarize given text | <url> summarize video using the subtitles provided | <url> summarize given article'
    article-summary:'<input> summarize article'
    keypoints:'<input> list key points'
    explain:'<input> explain'
    commit-message:'write commit message header'
    proofread:'<input> proofread for spelling'
    shell:'<input> generate shell command for the task'
    help:'show usage'
    --help:'show usage'
    -h:'show usage'
  )
  _describe -t sub-commands 'sub commands' list && _ret=0
}

_ayo() {
  if (($CURRENT == 2)); then
    _alternative 'sub-commands:files:__ayo_cmd' && _ret=0
  # elif (($CURRENT == 3)); then
  #   case $words[2] in
  #     open|o|rm|cat)
  #       _path_files -W "${note_dir}" && _ret=0;;
  #     new|n|ls)
  #       _path_files -W "${note_dir}" -/ && _ret=0;;
  #   esac
  # elif (($CURRENT >= 3)); then
  #   case $words[2] in
  #     rm)
  #       _path_files -W "${note_dir}" && _ret=0;;
  #   esac
  fi
}
