A general REPL console for Rust.
Clone or download
Pull request Compare This branch is 1 commit ahead, 72 commits behind mitnk:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs updated docs May 26, 2018
src init win32 build Jun 27, 2018
tests fixed a string parsing issue Apr 28, 2018
.gitignore a bit of refactoring Sep 16, 2017
.travis.yml no need to sudo Jun 25, 2017
CHANGELOG.md upgrade linefeed to 0.5 May 26, 2018
Cargo.toml init win32 build Jun 27, 2018
LICENSE updated for linefeed prompt length calc Apr 11, 2017
Makefile updated makefile May 26, 2018
README.md init win32 build Jun 27, 2018
TODO.md init win32 build Jun 27, 2018

README.md

Silkworm

Silkworm is a general REPL console for Rust.

[Forked from] Cicada is a simple Unix shell written in Rust. It's ready for daily use.

Travis Build Status Latest Version

Documents

Features

run programs and pipelines

$ ls | head -n3
Desktop
Documents
Downloads

$ echo foo bar | awk -F " " '{print $2, $1}'
bar foo

with redirections

$ ls file-not-exist 2>&1 | wc > e.txt
$ cat e.txt
       1       7      46

command substitution

$ ls -l `which sh`
-r-xr-xr-x  1 root  wheel  630464 Mar 23 07:57 /bin/sh

run multiple commands (with logical)

$ echo foo; echo bar
foo
bar

$ echo foo && echo bar
foo
bar

$ echo foo || echo bar
foo

shell expansions

$ echo sp{el,il,al}l
spell spill spall

$ echo $SHELL
/usr/local/bin/cicada

$ echo *
Cargo.lock Cargo.toml LICENSE Makefile README.md src target

do math arithmetic directly in the shell!

$ 1 + 2 * 3 - 4
3
$ (1 + 2) * (3 - 4) / 8.0
-0.375

Cicada is also a library (BETA)

Read APIs here: https://docs.rs/cicada/0.8.0/cicada/

Install Cicada

Please refer to docs/install.md.

FAQs

To do list

  • job controls (Ctrl-Z, fg, bg etc)
  • and less...

Won't do list

  • functions
  • and more...