Crates.io | commit--cli |
lib.rs | commit--cli |
version | 0.2.0 |
source | src |
created_at | 2021-12-08 04:13:59.490425 |
updated_at | 2021-12-11 03:40:12.922219 |
description | Command-line tool for publishing git commits to commit--blog.com |
homepage | https://commit--blog.com/cli |
repository | https://github.com/uniphil/commit--cli |
max_upload_size | |
id | 494238 |
size | 92,727 |
A command-line interface for commit--blog
If you use Git, you’ve already begun! To create a public commit --blog of your own, you don’t need to dive deeper into this repo. Go to https://commit--blog.com, follow the instructions there to create an account, and start picking some of your favourite commits to publish.
Once you have an account set up, log in from the CLI with
git blog login
Once logged in, you can publish commits with
git blog post
By default it will attempt to publish the commit at the HEAD
of whatever repository your terminal is in when you run it.
For the moment, only repositories with a github ssh origin are supported, but more general git support is coming soon. Make sure you push your commit before trying to publish it as a post :)
You can provide any git reference to publish a specific commit
git blog post main~2
To see full usage details,
git blog --help
We’re still working on this part of the README. For now, you can check out the project’s active issues.
Use the COMMITBLOG_HOST
environment variable override. For example, to hack on the commit--blog dev server locally,
COMMITBLOG_HOST=http://localhost:5000 cargo run login
# or with the installed version:
COMMITBLOG_HOST=http://localhost:5000 git blog login