Skip to content

Use Enum for coloring options #80

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

Merged
merged 4 commits into from
Apr 9, 2023

Conversation

paketb0te
Copy link
Contributor

Also move some stray Enums into git-sim.enums.py.

Enums have two advantages here, they:

  • show all options when using git-sim --help
  • help avoid typos in the string comparison in git_sim_base_command's color_by() function

initialcommit-io and others added 2 commits March 31, 2023 20:57
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
Also move some stray Enums into git-sim.enums.py.

Enums have two advantages here, they:
 - show all options when using git-sim --help
  - help avoid typos in the string comparison in git_sim_base_command's
  color_by() function
@initialcommit-io
Copy link
Contributor

@paketb0te Good to have you back!

Since we have a few contributors now I created a dev branch that is up to date. Please request merges to dev instead of main so that we can exchange updates and test them without introducing unwanted side-effects to main. Can you update the destination branch on this PR to dev?

@paketb0te
Copy link
Contributor Author

... should have read the updated CONTRIBUTING.md 😆

@paketb0te paketb0te changed the base branch from main to dev April 8, 2023 14:10
@initialcommit-io
Copy link
Contributor

@paketb0te Just making sure you saw my review comment above about keeping older syntax like Union[List[pathlib.Path], None] to support back to Python >= 3.7

@paketb0te
Copy link
Contributor Author

@initialcommit-io huh, no I did not see your comment, and still can't find it - I am probably looking in the wrong place?

Nevertheless I am of course changing that back immediately :)

@initialcommit-io initialcommit-io merged commit 0b7d777 into initialcommit-com:dev Apr 9, 2023
@paketb0te paketb0te deleted the color_by branch April 10, 2023 09:40
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.

2 participants