Code Playground Save

CodePlayground is a playground tool for go and rust language.

Project README

CodePlayground

CodePlayground is a playground tool for go and rust language.

Go Report Card Go Doc Card

Installation

Use homebrews to install code-playground.

brew tap trendyol/trendyol-tap
brew install code-playground

Usage

Commands open default (vim) editor

code-playground go

code-playground rust

If you want to use another editor for code-playground, export PLAYGROUND ENVIRONMENT value.

e.g. export PLAYGROUND_ENVIRONMENT="subl -w" (use sublime editor)

e.g. export PLAYGROUND_ENVIRONMENT="code -w" (use vscode editor)

Flags

Naming Playground

This command save to playground.

code-playground go my-go-playground

code-playground rust my-rust-playground

Share (-s)

This flag generate to playground link.

code-playground go -s

code-playground rust -s

Import (-i)

This flag import to shared playground link.

code-playground go -i "https://play.golang.org/p/9geTEmeOzJO"

code-playground rust -i "https://play.rust-lang.org/?gist=62a1c0b6f2aee0f7ebd78cfbddaae0e4"

Output


>>> code-playground rust -s

-------------------------------------------------
Hello, code-playground
-------------------------------------------------
⇨ https://play.rust-lang.org/?gist=7f28f8a1a7f35c35a903f983fa95b9e0
Open Source Agenda is not affiliated with "Code Playground" Project. README Source: Trendyol/code-playground
Stars
47
Open Issues
0
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating