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 embdmain() {
	app := cli.NewApp()
	app.Name = "nembd"
	app.Usage = "embedded utility belt"
	app.Version = version
	app.Commands = commands

	app.Run(os.Args)
}
