mirror of
https://github.com/kidoman/embd
synced 2025-01-05 03:21:35 +01:00
27 lines
389 B
Go
27 lines
389 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/codegangsta/cli"
|
|
_ "github.com/kidoman/embd/host/all"
|
|
)
|
|
|
|
var version = "0.1.0"
|
|
|
|
var commands []cli.Command
|
|
|
|
func registerCommand(cmd cli.Command) {
|
|
commands = append(commands, cmd)
|
|
}
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "embd"
|
|
app.Usage = "embedded utility belt"
|
|
app.Version = version
|
|
app.Commands = commands
|
|
|
|
app.Run(os.Args)
|
|
}
|