🕶btb:a command line tool for blog toolbox.
$ btb -m b -mp "/opt/data/md/" -dp "/opt/data/md/images/"
DownLoading: /Users/chenjie/Downloads/movie/test1/cicada5.md 2 / 2 <-------------------------------------> 0 p/s 100.00%
DownLoading: /Users/chenjie/Downloads/movie/cicada4.md 2 / 2 <-------------------------------------------> 0 p/s 100.00%
DownLoading: /Users/chenjie/Downloads/movie/cicada1.md 3 / 3 <-------------------------------------------> 1 p/s 100.00%
DownLoading: /Users/chenjie/Downloads/movie/cicada2.md 3 / 3 <-------------------------------------------> 1 p/s 100.00%
DownLoading: /Users/chenjie/Downloads/movie/cicada3.md 3 / 3 <-------------------------------------------> 1 p/s 100.00%
DownLoading: /Users/chenjie/Downloads/movie/test1/cicada6.md 3 / 3 <-------------------------------------> 1 p/s 100.00%
Successful handling of [6] files.
curl -fsSL https://raw.githubusercontent.com/crossoverJie/btb/master/install.sh | bash
git clone https://github.com/crossoverJie/btb.git
cd btb
make release
It will generate binary files for different platforms.
btb -m b -mp "/opt/data/md/" -dp "/opt/data/images/"
./btb.exe -m b -mp "/opt/data/md/" -dp "/opt/data/images/"
btb -h
NAME:
btb - Help you backup and replace your blog's images
USAGE:
btb [global options] command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--model value, -m value operating mode; r:replace, b:backup (default: b)
--download-path value, --dp value The path where the image is stored (default: "/opt/data")
--markdown-path value, --mp value The path where the markdown file is stored (default: "/opt/data")
--help, -h