Skip to content
New issue

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

Add --json flag for the status sub-command #23

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

flying7eleven
Copy link

This PR combines two different things since the first one was mandatory for me for actually testing my changes:

  1. The commit 7b751bf allows the test containers to also be run on Mx-based Macs as well. There were some hard coded architecture flags I had to switch to a some more dynamic ones as well as use generic container images which are also provided with arm64 architecture.
  2. The actual change I wanted to provide is in the other commits. They add a --json flag to the git-team status command. This prints out the same information as without this flag but in a machine-readable format.

Happy to discuss the proposed changes 🥳

This feature allows easier access to some of the state variables
for scripts doing actions based on the state of git-team.

One example where this feature might be useful is to temporary
disable git team, install some pre-commit hocks and afterwards
re-enabling it with the same, previously configured, co-authors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant