Giter Club home page Giter Club logo

rp-cli's Introduction

rp-cli

CICD License Latest Version

rp-cli is a cli of The Rust Playground.

rp-cli-readme-gif

Installation

From Source

$ cargo install rp-cli

From Binaries

The release page includes precompiled binaries.

Usage

Run

$ rp run ./examples/run.rs

Format

$ rp fmt ./examples/run.rs

Share

rp output "Permalink to the playground", "Direct link to the gist".

$ rp share ./examples/run.rs

Download

rp can handle gist_id or rust playground url.

$ rp download 234b1b3dd6bf3c13ec78ea86db21e2cd
or
$ rp download https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=234b1b3dd6bf3c13ec78ea86db21e2cd

Test

$ make test

Development Run

$ cargo run run examples/main.rs

Release

  1. Update Cargo.toml
- version = "0.0.A"
+ version = "0.0.B"
  1. Update Cargo.lock
$ make test
  1. Commit and Tag and Push
$ git add . && git commit -m "Version 0.0.B" && git push origin main
$ git tag v0.0.B
$ git push origin v0.0.B
  1. Running CI
  • Creating Binaries
  • Publishing Crates

Dependencies

TODO

  • output file (fmt, download)
  • output JSON format
  • more test code...
  • declear custom error type

Blog

「rp-cli: Rust Playground CLI」 https://naoto0822.medium.com/rp-cli-rust-playground-cli-10ba1666ae32

License

Licensed under either of

at your option.

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.