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 branchout aliases #65

Open
maxtuzz opened this issue Oct 2, 2020 · 1 comment
Open

Add branchout aliases #65

maxtuzz opened this issue Oct 2, 2020 · 1 comment

Comments

@maxtuzz
Copy link
Contributor

maxtuzz commented Oct 2, 2020

Proposal
Having support for creating custom aliases means that teams can customise and extend branchout with aliases to ship and collaborate on common commands for all team members.

Possible implementation

branchout alias mvn=maven

Map branchout mvn to branchout maven

Save to ~/projects/myproj/.branchout-aliases/mvn.branchout

Aliases can then be committed to root project repo.

Inspired use case
Rolling kubernetes for local development requires a few maven properties:

branchout maven cv \
    -DskipTests=true \
    -Dmaven.test.skip=true \
    -Dmaven.site.skip=true \
    -Dtile-deploy.javaVersion=11-debug \
    -Ddocker.tag=$IMAGE

This is defined on a few levels. Mapping this to a simple $ branchout skaffold would help keep this consistent project wide through it being centralized in git.

@stickycode
Copy link
Member

Good idea

My preference is for Branchoutaliases in the projection directory, so its in your face a little bit. This will encourage people to look at it. Same reason the other files are not hidden.

Could also have local aliases in ~/. config/branchout/aliases or perhaps by branchout in ~/branchout/xxx/Branchoutaliases

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

No branches or pull requests

2 participants