bookr-cli
Version:
A terminal-based CLI tool to book time in Jira using the Tempo plugin by parsing your current Git branch name
109 lines (78 loc) โข 2.23 kB
Markdown
# ๐งช Bookr - Tempo CLI Tool
[](https://badge.fury.io/js/bookr-cli)
[](https://www.npmjs.com/package/bookr-cli)
[](https://nodejs.org/)
[](https://opensource.org/licenses/ISC)
A terminal-based CLI tool to book time in Jira using the Tempo plugin by parsing your current Git branch name.
## ๐ฏ Features
- ๐ผ๏ธ **Ink** โ React for CLIs with beautiful terminal UI
- ๐ง **TypeScript** โ Strong typing and better developer experience
- ๐ฒ **Biome** โ Fast linting and formatting
- ๐ **better-fetch** โ Modern fetch API for HTTP requests
- โฑ๏ธ **Tempo API integration** โ Log time directly to Jira tickets
- ๐ฟ **Git integration** โ Automatically parse Jira ticket IDs from branch names
- ๐ฏ **Flexible ticket input** โ Specify ticket explicitly or use Git branch
## ๐ Quick Start
### Installation
#### Package Manager
Using npm:
```bash
npm install bookr-cli
```
Using yarn:
```bash
yarn add bookr-cli
```
Using pnpm:
```bash
pnpm add bookr-cli
```
Using bun:
```bash
bun add bookr-cli
```
#### From Source
```bash
# Clone the repository
git clone <repository-url>
cd bookr
# Install dependencies
npm install
# Build the project
npm run build
# Run the CLI
npm start
```
### Usage
```bash
# Basic usage (uses Git branch for ticket)
bookr 2h15m
# Log time with explicit ticket
bookr PROJ-123 2h15m
# Log time with description
bookr 2h15m -m "Worked on CLI"
bookr PROJ-123 2h15m -m "Fixed bug in login"
# Log time for specific date
bookr --date "2024-01-15" 4h
bookr PROJ-456 --date "2024-01-15" 4h
# View today's worklogs
bookr today
# View sprint overview
bookr sprint
# View sprint progress
bookr progress
# Check for updates
bookr update
# Get help
bookr --help
# Show version
bookr --version
```
## ๐ค Contributing
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Run `npm run check` to ensure code quality
5. Submit a pull request
## ๐ License
ISC License - see `package.json` for details.