wan ∪・ω・∪

Build Status Build status License: MIT

Note: This project is under development. Some breaking changes will be occured.

Overview

wan is a command-line client of Wandbox, written in Rust. It provides a way to interact with Wandbox from commandline.

Installation

Rust toolchain is required for installation. If you don't have installed Rust toolchain yet, visit official page of rustup to download installer.

sh $ cargo install --git https://github.com/ubnt-intrepid/wan.git

Commands

wan compile <filename> [<filenames>...]

Post a code to Wandbox, and retrieve compilation/execution results.

Arguments

Options

Example

```cpp // hello.cpp

include

include

int main(int argc, char* argv[]) { std::cout << "Hello, wandbox ^ω^" << std::endl;

std::cout << "Runtime arguments:" << std::endl; int i = 0; for (auto&& arg: std::vector(argv, argv+argc)) { std::cout << i++ << ": " << arg << std::endl; } return 0; } ```

sh $ wan compile hoge.cpp --compiler=clang-head --runtime-options="a b c"

wan list

Get compiler information from Wandbox and list to standard output.

Arguments

Options

Example

sh $ wan list

wan permlink <link>

Get a result specified a permlink from Wandbox

Arguments

Options

Example

sh $ wan permlink xxxxxxxx

Configuration

Configuration file are located at ~/.config/wan/config.json (or ~/AppData/Roaming/wan/config.json on Windows). For example, if you want to use local Wandbox service:

json { "url": "http://127.0.0.1:3500" }

Related Projects

Wandbox

Editor Plugin

Command Line Client

API