Support for setting the organization to use for CLI commands within a directory and its children #4796
andyfeller
started this conversation in
Ideas
Replies: 3 comments 4 replies
-
@andyfeller what is your current workflow for managing this as I have the exact same issue and can't seem to figure out the correct workflow to swap between organizations. |
Beta Was this translation helpful? Give feedback.
1 reply
-
How about an environment variable, GH_ORG? that way you can export it per shell |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey all, I'm wondering if this is making it's way into the gh cli. I tried @andyfeller's use of config set, but it seems that my version of the cli does not allow setting this so I am unable to get organizational repos. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I work with a lot of different organizations and enterprises that it is hard to keep repositories separate from one another, so I've taken to creating directories per organization to separate things out a bit. However the GH CLI assumes the repositories I'm working with are my own personal repos, so it requires a bit of extra typing.
It would be nice if I could set the slug of the organization that all GH CLI commands within a directory or any of the child directories should work with:
Over the long run, this would let me keep various parts of my professional, personal, and extracurricular activities separate in a consistent way with less keystrokes involved.
Beta Was this translation helpful? Give feedback.
All reactions