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
+55
View File
@@ -0,0 +1,55 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "yarn",
Description: "yarn package manager",
Subcommands: []core.Subcommand{
{Name: "install", Description: "install packages", Options: []core.Option{
{Name: "--frozen-lockfile", Description: "error on lockfile change"},
{Name: "--production", Description: "production only"},
}},
{Name: "add", Description: "add package", Options: []core.Option{
{Name: "-D", Description: "dev dependency"},
{Name: "-P", Description: "peer dependency"},
{Name: "-E", Description: "exact version"},
{Name: "-g", Description: "global"},
}},
{Name: "remove", Description: "remove package"},
{Name: "run", Description: "run script", Generator: NpmScriptGenerator},
{Name: "build", Description: "build project"},
{Name: "dev", Description: "start dev server"},
{Name: "test", Description: "run tests"},
{Name: "upgrade", Description: "upgrade packages", Options: []core.Option{
{Name: "--latest", Description: "upgrade to latest"},
{Name: "-i", Description: "interactive"},
}},
{Name: "workspace", Description: "run command in workspace"},
{Name: "workspaces", Description: "list workspaces", Subcommands: []core.Subcommand{
{Name: "info", Description: "workspace info"},
{Name: "run", Description: "run in all workspaces"},
}},
{Name: "link", Description: "symlink package"},
{Name: "unlink", Description: "unlink package"},
{Name: "audit", Description: "security audit"},
{Name: "cache", Description: "manage cache", Subcommands: []core.Subcommand{
{Name: "clean", Description: "clear cache"},
{Name: "list", Description: "list cache"},
{Name: "dir", Description: "print cache dir"},
}},
{Name: "init", Description: "create package.json", Options: []core.Option{
{Name: "-2", Description: "berry (v2+)"},
}},
{Name: "publish", Description: "publish package"},
{Name: "info", Description: "show package info"},
},
Options: []core.Option{
{Name: "--cwd", Description: "working directory"},
{Name: "--verbose", Description: "verbose output"},
},
})
}