Picgo


title: “Picgo”
createTime: 2021-07-01T12:05:58+08:00
updateTime: 2021-07-01T12:05:58+08:00
draft: false
author: “name”
tags: [“未标签”]
categories: [“未分类”]
description: “测试的”

picgo

  • 地址 : /home/zhu/software/node/node-v14.15.0-linux-x64/bin
  • 文件内容
#!/usr/bin/env /home/zhu/software/node/node-v14.15.0-linux-x64/bin/node
const path = require('path')
const minimist = require('minimist')
const argv = minimist(process.argv.slice(2))
let configPath = argv.c || argv.config || ''
if (configPath !== true && configPath !== '') {
  configPath = path.resolve(configPath)
} else {
  configPath = ''
}
const PicGo = require('../dist/src/index')
const picgo = new PicGo(configPath)
picgo.registerCommands()

try {
  picgo.cmd.program.parse(process.argv)
} catch (e) {
  picgo.log.error(e)
  if (process.argv.includes('--debug')) {
    Promise.reject(e)
  }
}

安装插件

  • picgo install gitee-uploader super-prefix web-uploader

配置插件

  • /home/zhu/.picgo

  • zhu@zhu-PC:~/.picgo$ cat config.json 
    {
      "picBed": {
        "current": "web-uploader",
        "uploader": "web-uploader",
        "smms": {
          "token": ""
        },
        "web-uploader": {
          "customBody": null,
          "customHeader": null,
          "jsonPath": null,
          "paramName": "file",
          "url": "http://our.dongshanxia.top:56789/img/upload/fileUpload"
        }
      },
      "picgoPlugins": {
        "picgo-plugin-web-uploader": true,
        "picgo-plugin-gitee-uploader": true,
        "picgo-plugin-super-prefix": true
      }
    }
    

你可能感兴趣的:(mysql)