refactor!: recipe fetch [recipe | --all]

See toolshed/organising#639
This commit is contained in:
2024-12-28 20:55:25 +01:00
parent a0da5299fe
commit 27f68b1dc5
2 changed files with 35 additions and 4 deletions

View File

@ -11,7 +11,7 @@ setup() {
assert_success
assert_not_exists "$ABRA_DIR/recipes/matrix-synapse"
run $ABRA recipe fetch
run $ABRA recipe fetch --all
assert_success
assert_exists "$ABRA_DIR/recipes/matrix-synapse"
}
@ -25,3 +25,13 @@ setup() {
assert_success
assert_exists "$ABRA_DIR/recipes/matrix-synapse"
}
@test "error if missing args/flags" {
run $ABRA recipe fetch
assert_failure
}
@test "error if single recipe and --all" {
run $ABRA recipe fetch matrix-synapse --all
assert_failure
}