Replace "TODO text" for yadm config
(#46)
This commit is contained in:
parent
671b5c6ec6
commit
76d90db627
2 changed files with 25 additions and 3 deletions
|
@ -13,14 +13,18 @@ setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Command 'config' (no parameters)" {
|
@test "Command 'config' (no parameters)" {
|
||||||
skip
|
|
||||||
echo "
|
echo "
|
||||||
When 'config' command is provided alone,
|
When 'config' command is provided alone,
|
||||||
Produce instructions about supported configuration options
|
Produce instructions about supported configuration options
|
||||||
Exit with 1
|
Exit with 1
|
||||||
"
|
"
|
||||||
|
|
||||||
#; TODO: This has not been implemented
|
#; run config
|
||||||
|
run "${T_YADM_Y[@]}" config
|
||||||
|
|
||||||
|
#; validate status and output
|
||||||
|
[ $status -eq 0 ]
|
||||||
|
[[ "$output" =~ Please\ read\ the\ CONFIGURATION\ section ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Command 'config' (read missing)" {
|
@test "Command 'config' (read missing)" {
|
||||||
|
|
20
yadm
20
yadm
|
@ -277,7 +277,25 @@ function config() {
|
||||||
|
|
||||||
if [ -z "$*" ] ; then
|
if [ -z "$*" ] ; then
|
||||||
#; with no parameters, provide some helpful documentation
|
#; with no parameters, provide some helpful documentation
|
||||||
echo TODO: Print help about available yadm configurations
|
cat << EOF
|
||||||
|
yadm supports the following configurations:
|
||||||
|
|
||||||
|
alt.class
|
||||||
|
alt.host
|
||||||
|
alt.os
|
||||||
|
alt.user
|
||||||
|
yadm.auto-alt
|
||||||
|
yadm.auto-perms
|
||||||
|
yadm.git-program
|
||||||
|
yadm.gpg-perms
|
||||||
|
yadm.gpg-program
|
||||||
|
yadm.gpg-recipient
|
||||||
|
yadm.ssh-perms
|
||||||
|
|
||||||
|
Please read the CONFIGURATION section in the man
|
||||||
|
page for more details about configurations, and
|
||||||
|
how to adjust them.
|
||||||
|
EOF
|
||||||
else
|
else
|
||||||
#; operate on the yadm configuration file
|
#; operate on the yadm configuration file
|
||||||
git config --file="$(mixed_path "$YADM_CONFIG")" "$@"
|
git config --file="$(mixed_path "$YADM_CONFIG")" "$@"
|
||||||
|
|
Loading…
Reference in a new issue