Make sure to get apps.json for recipe subcommands

Closes #136
This commit is contained in:
3wc 2021-04-05 16:11:50 +02:00
parent 48a7bb8c2d
commit 8cb556275f

3
abra
View File

@ -1858,6 +1858,7 @@ List all available recipes."
}
sub_recipe_list() {
require_apps_json
get_recipes
printf "%s delicious recipes:\n" "${#RECIPES[@]}"
@ -1872,6 +1873,7 @@ Show all available versions of <recipe>."
}
sub_recipe_versions() {
require_apps_json
get_recipe_versions "$abra__recipe_"
printf "%s thrilling versions of $abra__recipe_:\n" "${#RECIPE_VERSIONS[@]}"
@ -1912,6 +1914,7 @@ POWERED BY
}
sub_recipe_release() {
require_apps_json
require_binary skopeo
require_yq