The websh service is no longer available. Thank you very much for the operation so far. With the end of service, this repository is archived as well.
A command line websh client with bash-like interactive UI
- Run commands on the websh environment without huge Docker image
- Supports bash / GNU Readline like line editing, console clearing (
Ctrl-L
), history searching (Ctrl-R
), andTab
completion
Usage:
websh-prompt [OPTIONS]
Application Options:
-V, --version Show version
-t, --test Test websh server status
Help Options:
-h, --help Show this help message
Just run the websh-prompt
then you'll be promped. Enter the command you want, the result will be desplayed.
To quit interactive mode, type exit
or Ctrl-D
.
[you@your-computer]$ websh-prompt
websh# uname -a
Linux 9da3a1b93c29 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
websh# figlet -f slant websh
__ __
_ _____ / /_ _____/ /_
| | /| / / _ \/ __ \/ ___/ __ \
| |/ |/ / __/ /_/ (__ ) / / /
|__/|__/\___/_.___/____/_/ /_/
websh# exit
[you@your-computer]$
To see the line editing key bindings, see the README on peterh/liner.
The command line execution history is saved in websh-prompt-history.txt
under the temporary directory of your system. When you start the program, the history is loaded and you can edit the history and re-execute.
help
: Show help message.exit
: Quit interactive UIversion
: Show versionping
: Test websh server status
You can download executable binary from release page
These tools make it easy to install executable binaries from GitHub Release.
with ghg:
ghg get sheepla/websh-prompt # Install
ls -l $(ghg bin)/websh-prompt # It will exists executable
with relma:
Copy download link URL from Latest Release page, then run below.
relma init # Setup
relma install {{DOWNLOAD_LINK_URL}} # Install
ls -l $(relma root)/bin/websh-prompt # It will exists executable
with gh-install
gh install sheepla/websh-prompt # Install
ls -l ~/.local/bin/websh-prompt # It will exists executable
Clone this repository then run go install
.
Developing on v1.17.7 linux/amd64
.
Welcome 💖