Skip to content

Commit

Permalink
Add ability to start/rebuild addon from vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
davet2001 committed Jan 1, 2023
1 parent 58a50e3 commit 9edc3e3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@
"panel": "new"
},
"problemMatcher": []
},
{
"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",
"group": {
"kind": "test",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"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",
"group": {
"kind": "test",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
}
]
}

0 comments on commit 9edc3e3

Please sign in to comment.