Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riywo/sushimaster
Single binary executable many commands
https://github.com/riywo/sushimaster
Last synced: about 1 month ago
JSON representation
Single binary executable many commands
- Host: GitHub
- URL: https://github.com/riywo/sushimaster
- Owner: riywo
- Created: 2014-12-08T14:16:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-26T04:22:50.000Z (about 10 years ago)
- Last Synced: 2024-10-21T20:05:01.986Z (3 months ago)
- Language: Go
- Homepage:
- Size: 273 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sushimaster
===========POC: Single binary executable many commands like busybox
## Install
````
go get github.com/riywo/sushimaster
````## Usage
Prepare a directory like below:
````
$ tree data/
data/
└── bin
├── bar
└── foo
$ cat data/bin/foo
#!/bin/bash
echo foo
$ ./data/bin/foo
foo
$ ./data/bin/bar
bar
````Then, make `sushibox` by `sushimaster` and have fun.
````
$ sushimaster data
$ ls
data sushibox
$ file sushibox
sushibox: Mach-O 64-bit executable x86_64
$ ./sushibox foo
foo
$ ./sushibox bar
bar
````Symlink works like `buxybox`.
````
$ ln -s sushibox foo
$ ln -s sushibox foo
$ ./foo
foo
$ ./bar
bar
````