Crates.io | lnr |
lib.rs | lnr |
version | 0.2.0 |
source | src |
created_at | 2023-07-04 13:19:41.260793 |
updated_at | 2024-05-06 13:55:34.97529 |
description | A tiny unofficial Linear client |
homepage | https://github.com/alanvardy/lnr |
repository | https://github.com/alanvardy/lnr |
max_upload_size | |
id | 907965 |
size | 137,756 |
A Linear command line client
Add an organization and token. Your token can be generated in Linear Settings
lnr org add
Create a new issue
lnr issue create
View issue (linked to current branch)
lnr issue view
Edit issue (linked to current branch)
lnr issue edit
Input file (uses handlebars-style variables)
# build_batcave.toml
[variables]
name = "Alfred"
[parent]
title = "This is a parent issue"
description = """
We need to create a batcave
Make sure to coordinate with {{name}}
See child tickets
"""
[[children]]
title = "This is a child issue for {{name}} to complete"
description = """
Figure out where to put the batcave
- Some place dark and dingy
- Make sure to coordinate with {{name}}
"""
[[children]]
title = "This is a second child issue that will be linked to the parent issue"
description = """
Make sure that we have enough bats
### Acceptance Criteria
- [ ] They can't bite too much
- [ ] At least a dozen
- [ ] Don't overdo it this time
"""
Command
lnr template evaluate --path ~/Documents/build_batcave.toml
When passed a directory, Linear Templater will recursively walk through the directory and all sub-directories and create tickets from all the TOML files that are not Cargo.toml
.
Command
# Create tickets from all TOML files in the current directory
lnr template evaluate --path .
# Linux and MacOS
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install lnr
cargo install lnr
# Use yay or another AUR helper
yay lnr-bin
Clone the project
git clone git@github.com:alanvardy/lnr.git
cd tod
./test.sh # run the tests
cargo build --release
You can then find the binary in /target/release/
Contributions are welcome, be sure to open up an issue first!