hblog
はてなブログ用のCLIクライアントです。
内部で motemen/blogsync を利用しています。
これに、new, list, edit 機能などを追加しています。
Usage
NAME:
hblog - CLI client for Hatena blog
USAGE:
hblog [global options] command [<arguments>]
VERSION:
0.2.2
COMMANDS:
list, l List entries
new, n New entries in draft
edit, e Edit entries
pull, p Pull entries from remote
push Push local entries to remote
config, c Edit config file
browse, b Open entries web site with browser
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
pull, push は、内部で blogsync の同機能を呼び出しています。
Installation
$ go get github.com/motemen/blogsync
$ go get github.com/humangas/hblog
Dependencies
edit, push, browse 機能がセレクターに依存します。事前に導入が必要です。
Configuration
blogsync の Configuration を基本的にそのまま利用します。
それに以下の定義を追加します。
default:
draft_root: "new" で作成するファイルが格納されるディレクトリ
selector:
cmd: fzf
option: "--multi --cycle --bind=ctrl-u:half-page-up,ctrl-d:half-page-down"
$ hblog config
コマンドでコンフィグファイルを修正することができます。