Giter Site home page Giter Site logo

md_picture_migrate_cli's Introduction

A tools for migrate markdown image

Before migrate, you must backup your markdown files.

Before migrate, you must backup your markdown files.

Before migrate, you must backup your markdown files.

ScreenShot

image

Install

For Releases

Download the binary file from release

And unzip the tar.gz file.

If the file is not executable, you can use the following command to make it executable.

chmod +x mdm.exe
mv mdm.exe /usr/local/bin/mdm # or other path

For dart pub

dart pub global activate md_picture_migrate_cli

Config

Azure git

mdm config --azure-endpoint "https://dev.azure.com/user/images/_git/MirrorImages" --azure-token <person-token> --azure-user <user-name>

Github

mdm config --github-endpoint "https://github.com/CaiJingLong/md_picture_migrate_cli" --github-token <token> --github-user <username>

Usage

Scan

Scan and list all pictures.

Usage: md_picture_migrate_cli scan [arguments]
-d, --directory              The directory to scan.
-i, --include-prefix         The prefix of the picture url to include.
                             (defaults to "http://", "https://")
-x, --exclude-prefix         The prefix of the picture url to exclude.
-e, --markdown-extensions    The file extensions to include.
                             (defaults to ".md", ".markdown")
-h, --help                   Print this usage information.

Run "mdm help" to see global options.

Will create need replace image url list.

mdm scan -d ~/blogs/content -x https://dev.azure.com -x https://cdn.jsdelivr.net

Migrate

mdm migrate -d ~/blogs/content

help

mdm -h # or mdm --help

LICENSE

MIT

md_picture_migrate_cli's People

Contributors

caijinglong avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.