refactor(commands): separate commands and its core into two folders (#32)

- 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
This commit is contained in:
VERSE
2026-07-05 11:27:30 +07:00
committed by GitHub
parent 6b98455957
commit ebde9ba68f
536 changed files with 2241 additions and 2241 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
package sys
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "sanity",
Description: "Displays help information about Sanity",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "help", Description: "Displays help information about Sanity"},
{Name: "build", Description: "Builds the current Sanity configuration to a static bundle"},
{Name: "codemod", Description: "Runs a code modification script"},
@@ -48,7 +48,7 @@ func init() {
{Name: "invite", Description: "Invite a new user to the project"},
{Name: "versions", Description: "Shows the installed versions of Sanity CLI and core components"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--source-maps", Description: "Enable source maps for built bundles (increases size of bundle)"},
{Name: "--no-minify", Description: "Skip minifying built JavaScript (speeds up build, increases size of bundle)"},
{Name: "-y", Description: "Use unattended mode, accepting defaults and using only flags for choices"},