feat(commands): refactor and add more commands
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package view
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "cat",
|
||||
Description: "concatenate and print",
|
||||
Generator: core.FileGenerator(),
|
||||
Options: []core.Option{
|
||||
{Name: "-n", Description: "number lines"},
|
||||
{Name: "-b", Description: "number non-blank"},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user