#! /bin/bash google() ( _is_sheets() { echo "$@" | grep -q 'docs.google.com.spreadsheets' } _is_doc() { echo "$@" | grep -q 'docs.google.com.document' } is() { _is_sheets "$@" || _is_doc "$@" } human_url() { log "not impl: human url: $@" exit 1 } get() { log "not impl: get: $@" exit 1 } expand() { echo "$@" | base64 } "$@" )