GithubHelp home page GithubHelp logo

btb's Introduction

☄️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

btb's People

Contributors

crossoverjie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.