Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
````