Files
dokku/plugins/ssh-keys/subcommands/list
Jose Diaz-Gonzalez c91a6d1a55 feat: add the ability to list ssh keys for a specific user
Also upgrade the version of sshcommand used within the vagrant vm
2020-04-04 02:23:38 -04:00

18 lines
404 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
declare SSH_NAME="$1"
verify_ssh_key_file
sshcommand list dokku "$SSH_NAME"
}
cmd-ssh-keys-list "$@"