Closed rongxin-liu closed 9 months ago
Sounds handy. Though feels like a lot of implementation details to put in update50.sh
? Would it be cleaner to move the filtration to a URL like https://cs50.dev/devcontainer.json?develop
, then only the URL needs to be conditional in update50.sh
?
We could even generalize then where by the URL is more like https://cs50.dev/devcontainer.json?tag=develop
and usage is like update50 -t develop
?
Sounds handy. Though feels like a lot of implementation details to put in
update50.sh
? Would it be cleaner to move the filtration to a URL likehttps://cs50.dev/devcontainer.json?develop
, then only the URL needs to be conditional inupdate50.sh
?We could even generalize then where by the URL is more like
https://cs50.dev/devcontainer.json?tag=develop
and usage is likeupdate50 -t develop
?
Good idea! I made this PR for cs50.dev: https://github.com/cs50/cs50.dev/pull/197
Running
update50 --develop
will automatically grab the devcontainer.json file from the develop branch and set the image tag todevelop
, which avoids having to manually update the.devcontainer.json
file on Codespace during dev-testing.