Files
dokku/plugins/ssh-keys/subcommands/list
2020-02-10 02:54:31 -05:00

17 lines
368 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/ssh-keys/functions"
cmd-ssh-keys-list() {
declare desc="List ssh key hashes"
declare cmd="ssh-keys:list"
[[ "$1" == "$cmd" ]] && shift 1
verify_ssh_key_file
sshcommand list dokku
}
cmd-ssh-keys-list "$@"