A cli tool with an in-place terminal editor to compile over 27 languages instantly using the wandbox api.


Keywords
wandbox, cli, compile, run, compiler, python
License
MIT
Install
pip install wand-cli==2.1

Documentation

Wandbox Cli

A cli tool which uses the wandbox api to compile over 26 languages instantly, Wandbox is a social compilation service.

Note: The time for the output totally depends upon how fast your internet can make a post request, it can be as slow as mine or instantaneous

Installation

Arch Linux

You can install through the AUR

yay -S wand

Pip

You can install it with the python package manager pip

pip install wand-cli

After installing with pip, you will have the command available for you, so you can directly run by

wand [OPTIONS] language

Commands

If you run the command without any option provided, you will be asked for the language name and then you can write your code in the terminal directly, and run it by pressing esc + enter

list

The list command, wand --list or wand -l is used to show the list of languages available.

file

The file command, wand --file [FILE PATH] or wand -f [FILE PATH] is used to compile a file.

editor

The editor command, wand --editor [editor-name] or wand -e [editor-name] is used to open a temporary buffer in an editor to edit files, the code is run after the editor is closed, note: its recommended to use a terminal editor for this, gui editors can cause unexpected behaviour.

theme

The theme command, wand --theme [theme name] or wand -t [theme name] is used to change the colorscheme for the in-place text editor

themelist

The themelist command (wand --themelist or wand -tl) is used to list all the available color schemes.

help

The help command, wand --help or wand -h shows a brief description on the command.

Languages

Here's a list of the languages which are available.

┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃    python    ┃      f#      ┃
β”‚     c++      β”‚    scala     β”‚
β”‚      c       β”‚    swift     β”‚
β”‚  javascript  β”‚  typescript  β”‚
β”‚     java     β”‚     vim      β”‚
β”‚   haskell    β”‚     lua      β”‚
β”‚     bash     β”‚     nim      β”‚
β”‚   crystal    β”‚     php      β”‚
β”‚    elixir    β”‚     perl     β”‚
β”‚      d       β”‚     pony     β”‚
β”‚    sqlite    β”‚      go      β”‚
β”‚     lisp     β”‚     ruby     β”‚
β”‚      c#      β”‚ coffeescript β”‚
β”‚     rust     β”‚              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜