We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a wrapper around GitHub CLI's gh codespace and git status -s:
opencdms codespace status - show git status -s for all git repositories in /workspaces/
opencdms codespace status
git status -s
/workspaces/
Wrap the command below in Python
find /workspaces -type d -name '.git' | while read dir ; do sh -c "cd $dir/../ && echo \"${dir//\.git/}\" && git status -s" ; done
... and only display lines starting with / if the next line does not start with '/'.
/
opencdms codespace delete - delete current codespace if no changes in any repos in /workspaces/
opencdms codespace delete
We can delete the current codespace container with: gh codespace delete -c $CODESPACE_NAME
gh codespace delete -c $CODESPACE_NAME
Offer -f and --force options to kill the container even if code changes exist.
-f
--force
Note:
type -p curl >/dev/null || sudo apt install curl -y curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && sudo apt update \ && sudo apt install gh -y
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Implement a wrapper around GitHub CLI's gh codespace and git status -s:
opencdms codespace status
- showgit status -s
for all git repositories in/workspaces/
Wrap the command below in Python
... and only display lines starting with
/
if the next line does not start with '/'.opencdms codespace delete
- delete current codespace if no changes in any repos in/workspaces/
We can delete the current codespace container with:
gh codespace delete -c $CODESPACE_NAME
Offer
-f
and--force
options to kill the container even if code changes exist.Note:
The text was updated successfully, but these errors were encountered: