- I wrote a scripts to copy and generate all commands missing in iris from fig repo: https://github.com/withfig/autocomplete - Add a new script to generate commands docs about which commands currently are inside commands folder 377d4aac663590e504fe39a92eb4dac4cbd333b2 - Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
21 lines
818 B
Go
21 lines
818 B
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/commands/core"
|
|
)
|
|
|
|
func init() {
|
|
core.Register(&core.Spec{
|
|
Name: "where",
|
|
Description: "For each name, indicate how it should be interpreted",
|
|
Options: []core.Option{
|
|
{Name: "-w", Description: "For each name, print 'name: word', where 'word' is the kind of command"},
|
|
{Name: "-p", Description: "Do a path search for the name, even if it's an alias/function/builtin"},
|
|
{Name: "-m", Description: "The arguments are taken as patterns (pattern characters must be quoted)"},
|
|
{Name: "-s", Description: "If the pathname contains symlinks, print the symlink-free name as well"},
|
|
{Name: "-S", Description: "Print intermediate symlinks and the resolved name"},
|
|
{Name: "-x", Description: "Expand tabs when outputting shell function"},
|
|
},
|
|
})
|
|
}
|