- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
20 lines
399 B
Go
20 lines
399 B
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "mknod",
|
|
Description: "Create device special file",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "c", Description: "Create (c)haracter device"},
|
|
{Name: "b", Description: "Create (b)lock device"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "-F", Description: "Format"},
|
|
},
|
|
})
|
|
}
|