GithubHelp home page GithubHelp logo

podspec's Introduction

cloud-shell-lib

这是一个公共库,封装了下载和安装脚本的方法。

curl -s https://sh.xaox.cc/install | sh -s

如何使用

在脚本中定义一个常数,指定函数库的版本:

# lib
lib=https://sh.xaox.cc/lib/v3

下载脚本

参数 含义
${REPO} cloud-shell-lib组织名下的仓库名
${BRANCHE} 此仓库的分支
${TARGET} 要下载的文件
${CACHE_PATH} 保存路径(可选,默认为Downloads)
curl -s ${lib}/download.sh | sh -s ${REPO} ${BRANCHE} ${TARGET}

除了脚本,此方法也可以下载其它文件。

安装脚本

参数 含义
${TARGET} 下载的文件路径
${RENAME} 保存的名字(可选,默认同文件名)
curl -s ${lib}/install.sh | sh -s ${TARGET} ${RENAME}

如果下载路径是默认的,那么路径是: $HOME/Downloads/${FILENAME}

curl -s ${lib}/install.sh | sh -s $HOME/Downloads/${FILENAME} ${RENAME}

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.