#compdef pypack

_pypack () {
  local -a reply
  if [[ ${CURRENT} = 2 ]]; then
    reply=(
      find:'find package path'
      list:'get package list'
      help:'show usage'
      )
  else
    case ${=${(s: :)words}[2]} in
    find)
      opts=`pypack list`
      reply=(${=opts})
    ;;
    esac
  fi
  _describe -t pypack_completion 'pypack_completion' reply
}
