rp-cli

Crates.iorp-cli
lib.rsrp-cli
version0.0.4
sourcesrc
created_at2022-03-24 01:11:50.512861
updated_at2022-08-04 05:31:19.585194
descriptionrp-cli is a cli of The Rust Playground.
homepagehttps://github.com/naoto0822/rp-cli
repositoryhttps://github.com/naoto0822/rp-cli
max_upload_size
id555475
size4,827,900
naoto yamaguchi (naoto0822)

documentation

README

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

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.

Commit count: 62

cargo fmt