hblog

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 21 Imported by: 0

README

hblog

MIT License OS macOS
はてなブログ用の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 機能がセレクターに依存します。事前に導入が必要です。

  • See also: fzf

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 コマンドでコンフィグファイルを修正することができます。

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL