1
0
Fork 0
mirror of synced 2024-12-13 02:45:45 -05:00

Replace "TODO text" for yadm config (#46)

This commit is contained in:
Tim Byrne 2017-01-25 17:28:55 -06:00
parent 671b5c6ec6
commit 76d90db627
No known key found for this signature in database
GPG key ID: 6CBE24C2FD8CF76E
2 changed files with 25 additions and 3 deletions

View file

@ -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
View file

@ -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")" "$@"