Giter Site home page Giter Site logo

demo-show-script's Introduction

from cilium

https://github.com/cilium/cilium/tree/2decaf1d7596f202f4c50ad85d0464141f781d14/contrib/shell

安装步骤

基础环境与能力演示

  1. 基于linux环境(centos or aliyunlinux2)
  2. 安装pv
yum -y install pv
  1. git clone https://github.com/lilongthinker/demo-show-script.git
  2. ./show_demo.sh

其他优化展示工具

  1. jq https://stedolan.github.io/jq/manual/
  2. jtab https://github.com/wlezzar/jtab
  3. 阿里云命令行工具 arc https://github.com/aliyun/alibabacloud-resourcify-cli

一些脚本演示

如下是demo里面的演示,可以一次打印,可以逐字打印,可以执行命令行,而命令行配合一些环境信息可以和jq/jtab/arc-cli 配合可以展现自动化的脚本展示

. ./bin/util.sh
desc "一次打印出来的提示信息"
desc_rate "逐字打印,类似手打效果"

run "date"

在脚本做好以后,可以通过asciinema来录制下来,进行分享

## mac下 brew install asciinema
yum -y install asciinema,
asciinema rec demo.json
asciinema play demo.json

demo-show-script's People

Contributors

lilongthinker avatar

Watchers

James Cloos 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.