#!/bin/bash set -euo pipefail if [[ "$#" -gt 0 && ("$1" == "-h" || "$1" == "--help") ]]; then cat </, one a line list --all every bucket, read here or not list -h|--help Only names, never values. The old store counts as readable while the old key is here. EOF exit 0 fi this_dir="$(cd "$(dirname "$(realpath "$0")")" && pwd)" source "${this_dir}/common.sh" all="" names_only="" while [[ $# -gt 0 ]]; do case "$1" in --all) all=1 ;; --names) names_only=1 ;; *) die "usage: szecret list [--names] [--all]" ;; esac shift done secrets_in() { local f for f in "$1"/*.age; do if [[ -e "${f}" ]]; then basename "${f}" .age fi done | LC_ALL=C sort } # Each bucket shown, then the old store, as "