• Stars
    star
    18
  • Rank 1,171,336 (Top 24 %)
  • Language
    Go
  • Created over 3 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

☄️ A cli tool for blog toolbox.

☄️A command line tool for blog toolbox.

Version of Java: https://github.com/crossoverJie/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.

asciicast

Install

curl -fsSL https://raw.githubusercontent.com/crossoverJie/btb/master/install.sh | bash

Local installation

git clone https://github.com/crossoverJie/btb.git
cd btb
make release

It will generate binary files for different platforms.

Usage

MacOS & Linux

# Backup
btb -m b -mp "/opt/data/md/" -dp "/opt/data/images/"

# Replace
btb -m r -mp "/opt/data/md/" -dp "/opt/data/images/" -tk "abc123"

Windows

# Backup
./btb.exe -m b -mp "/opt/data/md/" -dp "/opt/data/images/"

# Replace
./btb.exe -m r -mp "/opt/data/md/" -dp "/opt/data/images/" -tk "abc123"

Help

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")
   --token value, --tk value          Upload token (default: "/opt/data")
   --help, -h                         show help (default: false)
2021/02/23 14:10:17 Required flags "model, dp, mp, tk" not set

More Repositories

1

JCSprout

👨‍🎓 Java Core Sprout : basic, concurrent, algorithm
Java
27,060
star
2

cim

📲cim(cross IM) 适用于开发者的分布式即时通讯系统
Java
9,095
star
3

SSM

💕 build SSM from 0 👉🏽👉🏽 distributed micro service.
Java
3,441
star
4

distributed-redis-tool

🔒A simple distributed tools based on Redis.
Java
608
star
5

springboot-cloud

👬 springboot + springcloud build micro service
Java
481
star
6

ptg

💥Performance testing tool (Go), It is also a GUI gRPC client.
Go
320
star
7

gscript

💪🏻This is a statically and strongly typed language written in Go.|GScript 是用 Go 编写的静态、强类型的脚本语言。
Go
209
star
8

blog.toolbox

博客工具箱(字数统计、图片备份、图床批量替换)
Java
116
star
9

feign-plus

A better feign client library to combine with SpringBoot.
Java
71
star
10

leetcode

🕵️‍♂️ leetcode practice
Java
51
star
11

xjson

🧮JSON parser for Go, Support Query and Arithmetic operations.
Go
49
star
12

k8s-combat

☸️适用于研发人员的 k8s 实战项目🐳
Go
38
star
13

SSM-DUBBO-HTTP

💥 dubbo provide HTTP service
Java
27
star
14

SSM-DUBBO-FILTER

💋 dubbo日志扩展插件
Java
24
star
15

company_open

a personal forum
Java
21
star
16

netty-learning

netty 学习记录
Java
19
star
17

SSM-CONSUMER

⚡ dubbo consumer
Java
19
star
18

gorm-optimistic

This is an optimistic lock plugin based on GORM.
Go
15
star
19

blog-post

博客备份
12
star
20

crossoverJie.github.io

personal blog
HTML
11
star
21

SSM-REQUEST-CHECK

⏳ 基于annotation的http请求去重插件
Java
10
star
22

sqlalchemy-transfer

A plugin that can help you transfer MySQL DDL to sqlalchemy-model.
Java
9
star
23

sales-store

Base of B2B
Java
7
star
24

gscript-homepage

GScript homepage
Vue
5
star
25

crossoverJie

3
star
26

crossoverjie-index

个人主页
JavaScript
2
star
27

java-noob

Java
2
star
28

crossWeather

自学Android不久之后独立开发的Android项目—crossWeather
Java
2
star
29

pulsar-biz-test

1
star
30

easyframe-msg

Msg Producer and Consumer, a wrapper of Kafka
Java
1
star