chore(commands): more commands for suggestions (#10)

## What's new
- color completion message command green
https://github.com/versenilvis/IRIS/pull/10/commits/6e141f5e6909fad1ec42725cce38d51729acf399
- new flat command folder structure
https://github.com/versenilvis/IRIS/pull/10/commits/87026a854a529ec5d5baed967d5f7a7f0085a24b
- fix some linter problems
https://github.com/versenilvis/IRIS/pull/10/commits/536de790cefda912f50bf4022e40ce2b965db2e2
- fix some gemini fix suggestions
This commit is contained in:
VERSE
2026-06-23 10:27:26 +07:00
committed by GitHub
parent 3d76a3ee88
commit a2972f61f1
42 changed files with 2406 additions and 245 deletions
+40
View File
@@ -0,0 +1,40 @@
package text
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "find",
Description: "search for files",
Generator: core.FileGenerator("/"),
Options: []core.Option{
{Name: "-name", Description: "match by name"},
{Name: "-iname", Description: "match by name (case insensitive)"},
{Name: "-type", Description: "match by type (f=file, d=dir, l=link)"},
{Name: "-size", Description: "match by size (+1M, -10k)"},
{Name: "-mtime", Description: "modified n days ago"},
{Name: "-atime", Description: "accessed n days ago"},
{Name: "-ctime", Description: "changed n days ago"},
{Name: "-newer", Description: "newer than file"},
{Name: "-maxdepth", Description: "max depth to descend"},
{Name: "-mindepth", Description: "min depth to start"},
{Name: "-exec", Description: "execute command on match"},
{Name: "-execdir", Description: "exec in matched dir"},
{Name: "-delete", Description: "delete matched files"},
{Name: "-print", Description: "print matched paths"},
{Name: "-print0", Description: "null-terminated output"},
{Name: "-empty", Description: "match empty files/dirs"},
{Name: "-perm", Description: "match by permissions"},
{Name: "-user", Description: "match by owner"},
{Name: "-group", Description: "match by group"},
{Name: "-not", Description: "negate expression"},
{Name: "-or", Description: "logical OR"},
{Name: "-and", Description: "logical AND"},
{Name: "-prune", Description: "exclude from search"},
{Name: "-ls", Description: "list in ls format"},
{Name: "-xdev", Description: "don't cross filesystems"},
},
})
}