Giter VIP home page Giter VIP logo

cli's Introduction

Utility script for GraphScope

Build

A command-line tool for GraphScope, powered by bash.ly.

Get the latest build of the script from artifacts in Actions.

Usage

> # for detailed usage
> ./gs

Develop

  1. Install ruby, gem and bashly
  2. Make changes to src/bashly.yml, and shell scripts within src. Refer to the documentation of bash.ly
  3. Run bashly generate in the root directory, a gs file would be generated
  4. Copy generated gs to GraphScope repo and commit.

Install ruby >= 2.7

MacOS

brew install ruby
# Put ruby binary into PATH
export PATH="$(brew --prefix)/opt/ruby/bin:$PATH"
echo "export PATH=$(brew --prefix)/opt/ruby/bin:\$PATH" >> ~/.zshrc

gem install bashly

# MacOS bundled with an older bash v3, need to install a newer one which version >= 4
brew install bash
# Optional: Activate new bash
bash

Ubuntu 20.04 +

apt update -y && apt install ruby gem -y
gem install bashly

Centos 7

yum install centos-release-scl-rh -y
yum install rh-ruby30-ruby -y
/usr/bin/scl enable rh-ruby30 bash
gem install bashly

Centos 8

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum install @ruby:3.0 -y
gem install bashly

Generate script

# git clone https://github.com/GraphScope/cli.git & cd cli
bashly generate

cli's People

Contributors

siyuan0322 avatar yecol avatar shirly121 avatar acezen avatar lidongze0629 avatar sighingnow avatar dashanji 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.