Skip to content

Commit

Permalink
Use user provided property to select addon to run
Browse files Browse the repository at this point in the history
  • Loading branch information
davet2001 committed Feb 1, 2023
1 parent 9edc3e3 commit 7c128fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"label": "Start Addon",
"type": "shell",
"command": "slug=$(grep 'slug:' */config.yaml| awk '{print $2}'); docker exec -it hassio_cli sh -c \"ha addons stop local_$slug; ha addons start local_$slug\"; docker logs --follow addon_local_$slug",
"command": "docker exec -it hassio_cli sh -c \"ha addons stop local_${input:addonName}; ha addons start local_${input:addonName}\"; sudo docker logs --follow addon_local_${input:addonName}",
"group": {
"kind": "test",
"isDefault": false
Expand All @@ -27,12 +27,15 @@
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
"problemMatcher": [],
"runOptions": {
"reevaluateOnRerun": false
}
},
{
"label": "Rebuild and Start Addon",
"type": "shell",
"command": "slug=$(grep 'slug:' */config.yaml| awk '{print $2}'); docker exec -it hassio_cli sh -c \"ha addons rebuild local_$slug; ha addons start local_$slug\"; docker logs --follow addon_local_$slug",
"command": "docker exec -it hassio_cli sh -c \"ha addons rebuild local_${input:addonName}; ha addons start local_${input:addonName}\"; sudo docker logs --follow addon_local_${input:addonName}",
"group": {
"kind": "test",
"isDefault": false
Expand Down

0 comments on commit 7c128fb

Please sign in to comment.