1
0
Fork 0
mirror of synced 2024-12-21 22:21:08 -05:00

Output the actual paths in help message

Fixes #376.
This commit is contained in:
Erik Flodin 2024-12-06 00:07:45 +01:00
parent 6ee9b472d1
commit 0b91140ea8
No known key found for this signature in database
GPG key ID: 420A7C865EE3F85F

17
yadm
View file

@ -1174,6 +1174,13 @@ function git_command() {
}
function help() {
readonly config="${YADM_CONFIG/$HOME/\$HOME}"
readonly encrypt="${YADM_ENCRYPT/$HOME/\$HOME}"
readonly bootstrap="${YADM_BOOTSTRAP/$HOME/\$HOME}"
readonly repo="${YADM_REPO/$HOME/\$HOME}"
readonly archive="${YADM_ARCHIVE/$HOME/\$HOME}"
readonly padding=" "
local msg
IFS='' read -r -d '' msg << EOF
@ -1201,11 +1208,11 @@ Commands:
yadm transcrypt [OPTIONS] - Run transcrypt commands for the yadm repo
Files:
\$HOME/.config/yadm/config - yadm's configuration file
\$HOME/.config/yadm/encrypt - List of globs to encrypt/decrypt
\$HOME/.config/yadm/bootstrap - Script run via: yadm bootstrap
\$HOME/.local/share/yadm/repo.git - yadm's Git repository
\$HOME/.local/share/yadm/archive - Encrypted data stored here
$config${padding:${#config}} - yadm's configuration file
$encrypt${padding:${#encrypt}} - List of globs to encrypt/decrypt
$bootstrap${padding:${#bootstrap}} - Script run via: yadm bootstrap
$repo${padding:${#repo}} - yadm's Git repository
$archive${padding:${#archive}} - Encrypted data stored here
Use "man yadm" for complete documentation.
EOF