- 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
19 lines
549 B
Go
19 lines
549 B
Go
package fs
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "find",
|
|
Description: "Walk a file hierarchy",
|
|
Options: []spec.Option{
|
|
{Name: "-E", Description: "Permit find to be safely used in conjunction with xargs"},
|
|
{Name: "-d", Description: "Cause find to perform a depth-first traversal"},
|
|
{Name: "-f", Description: "Specify a file hierarch for find to traverse"},
|
|
{Name: "-s", Description: "Cause find to traverse the file hierarchies in lexicographical order"},
|
|
},
|
|
})
|
|
}
|