Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sheepla/dwebsh
π¦ A command line websh client powered by Deno
https://github.com/sheepla/dwebsh
api-client deno deno-cli shellgei
Last synced: 7 days ago
JSON representation
π¦ A command line websh client powered by Deno
- Host: GitHub
- URL: https://github.com/sheepla/dwebsh
- Owner: sheepla
- License: mit
- Created: 2021-11-14T10:55:08.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-24T11:40:22.000Z (about 3 years ago)
- Last Synced: 2024-11-12T02:41:42.654Z (2 months ago)
- Topics: api-client, deno, deno-cli, shellgei
- Language: TypeScript
- Homepage:
- Size: 31 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π¦ dwebsh
A command line [websh](https://github.com/jiro4989/websh) client powered by deno
## Features
- [x] Run commands on the websh environment
- [x] Save execution result images
- [x] Upload local images## Usage
```
$ dwebsh --helpUsage: dwebsh
Version: v0.0.2Description:
A command line websh client powered by Deno
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
-i, --images - image files to upload
```### Run commands
Just specify the command you want to execute in the first argument.
```
$ dwebsh 'uname -a'
Linux e143d8fdbb59 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
```### Save execution result images
To save images, output the image files to `/images/` on the websh environment.
```
$ dwebsh 'screenfetch | textimg -o /images/out.png'
Image saved: /tmp/dwebsh_76a6b2f5.png
```### Upload local images
You can upload and use local images. If you specify the image path in the `-i` /
`--images` option and execute it, it will be saved in `0`, `1`, ... files under
the `/media/` directory on the websh environment.```
$ dwebsh --images ~/pic/foo.png --images ~/pic/bar.png 'ls -lA /media'
εθ¨ 12
-rw-r--r-- 1 root root 828 11ζ 21 19:21 0
-rw-r--r-- 1 root root 6434 11ζ 21 19:21 1
```## Installation
Requires [deno](https://deno.land/deno), testing on `v1.16.1`.
```bash
deno install --allow-net --allow-write --name dwebsh \
https://raw.githubusercontent.com/sheepla/dwebsh/master/cli.ts
```... or clone this repository then run below.
```bash
make build && sudo make install
```## Contributing
Welcomeπ
## LICENSE
[MIT](./LICENSE)