A command line "toolbox" supporting Git, Docker and Jira workflows by some added functionality, powered by Node.js and written in TypeScript.
- Config file handling - set your user info and Jira project credentials in a central config file
- Git:
- Clean unused branches using a multi select list menu or with auto mode
- Check out a branch by issue number or by a select menu
- Check out a remote branch for Code Review - also by issue number or a select menu
- Shortcuts to check out main branches and also refresh them with one short command
- Set pre-defined user info for a repository or globally
- Docker:
- Remove containers, images or volumes using a multi select list menu
- Jira:
- Fetch base information about Jira issues by issue number
- Create a branch parsing and using the Jira issue title as branch name
- Have an up-to-date Node.js and NPM installed (I used Node 16.x, not tested with earlier versions).
- Run
npm installornpm ciin the project directory to install dependencies. This will automatically build the project at the end, but you can build using thenpm run buildcommand as well. - Create an alias in your bash config file such as
alias pit='node ~/path/to/pit-cli/dist/index.js'- Create a
.pitconfig.jsonfile in your user's HOME directory (e.g./home/peter/), enter the required information according to the.pitconfig.example.jsonfile in the project folder. - Run
pit helpfor more information about how to get started!