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

Feature request: integration Git Town #87

Open
chriswalz opened this issue Nov 4, 2020 · 2 comments
Open

Feature request: integration Git Town #87

chriswalz opened this issue Nov 4, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@chriswalz
Copy link
Owner

https://github.com/git-town/git-town#commands

@chriswalz chriswalz added the enhancement New feature or request label Nov 4, 2020
@sheldonhull
Copy link

Any tips on this @chriswalz? I would like to contribute improvements to "plugin" a few workflow oriented commands for folks, and knowing where it might fit would be really cool. In chats with Git Town there are some stable package commands that could be used directly, or the binary can be invoked to get a lot of the sync oriented workflow for short lived branches as well.

Any contribution guide would be useful to jump start.
I know git workflow, so that's not the problem, I mean more if you have some preference for packages/locations/etc to add.

thanks again for such a cool project. I always recommend to new folks on projects to alias alias git=bit to help them use git more productively and quickly ;-)

@chriswalz
Copy link
Owner Author

chriswalz commented Oct 5, 2021

Hi @sheldonhull glad to see your support for bit.

Here are a couple of good example files to highlight how to add a new command (in this case bit release) :

Line 64 - notice release is specified as a sub command

bit/main.go

Line 64 in 559852d

bitcliCmds := []string{"save", "sync", "help", "info", "release", "update", "pr", "complete", "gitmoji"}

The core functionality to make the release command resides here
https://github.com/chriswalz/bit/blob/master/cmd/release.go

To get the suggestions to show up for bit release when you type bit see lines 54-59.
https://github.com/chriswalz/bit/blob/master/cmd/suggestion_tree.go#L54

There are util functions for running git commands here:
https://github.com/chriswalz/bit/blob/master/cmd/git.go

Feel free to ping me if you have any questions. The above I think should help you get started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants