Giter Club home page Giter Club logo

goss's Introduction

goss

html模块功能:将指定的html文件内的资源上传到oss中,并更新内容链接

upload模块功能:上传指定文件到oss中

install

go install github.com/licat233/goss@latest

help

$goss -h
Upload the specified file resources to OSS.
current version: v1.1.0-beta.9
Github: https://github.com/licat233/goss.
if you want to set nev:
export GOSS_OSS_ACCESS_KEY_ID=xxxxxxxxxxxxxxx  # your oss access_key_id
export GOSS_OSS_ACCESS_KEY_SECRET=xxxxxxxxxxxxxxxxxxx  # you oss access_key_secret
export GOSS_OSS_BUCKET_NAME=xxxxxxxx  # you oss bucket name
export GOSS_OSS_FOLDER_NAME=xxxxxx  # the folder name where you save files on OSS, example: images/avatar
export GOSS_OSS_ENDPOINT=xxxxxxxxxxxxxxxx  # you oss bucket endpoint, example: oss-cn-hongkong.aliyuncs.com

Usage:
  goss [flags]
  goss [command]

modules:
  html        tools for processing HTML files
  upload      upload file processing tools

Additional Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  upgrade     Upgrade goss to latest version

Flags:
      --backup            Back up the original files to prevent their loss (default true)
      --bucket string     your-bucket-name. Default use of environment variable value of GOSS_OSS_BUCKET_NAME
      --dev               dev mode, print error message
      --dir string        The directory where the HTML file is located, defaults to the current directory (default ".")
      --endpoint string   your-oss-endpoint. Default use of environment variable value of GOSS_OSS_ENDPOINT, example: oss-cn-hongkong.aliyuncs.com
      --exts strings      your-file-extension name. The target file to be processed.For example: "html,htm".
      --files strings     your-fileext. The target file to be processed. If multiple files need to be selected, please use the "," separator, for example: "index.html,home.html".
      --folder string     your-oss-folder. Default use of environment variable value of GOSS_OSS_FOLDER_NAME
  -h, --help              help for goss
      --id string         your-access-key-id. Default use of environment variable value of GOSS_OSS_ACCESS_KEY_ID
      --proxy string      network proxy address
      --secret string     your-access-key-secret. Default use of environment variable value of GOSS_OSS_ACCESS_KEY_SECRET
  -v, --version           version for goss

Use "goss [command] --help" for more information about a command.

upgrade

goss upgrade

configure OSS

export GOSS_OSS_ACCESS_KEY_ID=xxxxxxxxxxxxxxx  # your oss access_key_id
export GOSS_OSS_ACCESS_KEY_SECRET=xxxxxxxxxxxxxxxxxxx  # you oss access_key_secret
export GOSS_OSS_BUCKET_NAME=xxxxxxxx  # you oss bucket name
export GOSS_OSS_FOLDER_NAME=xxxxxx  # the folder name where you save files on OSS, example: images/avatar
export GOSS_OSS_ENDPOINT=xxxxxxxxxxxxxxxx  # you oss bucket endpoint, example: oss-cn-hongkong.aliyuncs.com

goss's People

Contributors

licat233 avatar

Watchers

 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.