Files
iris-context/commands/ops/space.go
T
VERSE ebde9ba68f 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
2026-07-05 11:27:30 +07:00

46 lines
2.1 KiB
Go

package ops
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "space",
Description: "Deta Space CLI for mananging Deta Space projects",
Subcommands: []spec.Subcommand{
{Name: "completion", Description: "Generate the autocompletion script for the specified shell"},
{Name: "bash", Description: "Generate the autocompletion script for bash"},
{Name: "fish", Description: "Generate the autocompletion script for fish"},
{Name: "powershell", Description: "Generate the autocompletion script for powershell"},
{Name: "zsh", Description: "Generate the autocompletion script for zsh"},
{Name: "link", Description: "Link code to project"},
{Name: "login", Description: "Login to space"},
{Name: "new", Description: "Create new project"},
{Name: "open", Description: "Open current project in browser"},
{Name: "push", Description: "Push code for project"},
{Name: "release", Description: "Create release for a project"},
{Name: "validate", Description: "Validate spacefile in dir"},
{Name: "version", Description: "Space CLI version"},
{Name: "upgrade", Description: "Upgrade Space CLI version"},
{Name: "help", Description: "Help about any command"},
},
Options: []spec.Option{
{Name: "--no-descriptions", Description: "Disable completion descriptions"},
{Name: "--dir", Description: "Src of project to link"},
{Name: "--id", Description: "Project id of project to link"},
{Name: "--blank", Description: "Create blank project"},
{Name: "--name", Description: "Project name"},
{Name: "--open", Description: "Open builder instance/project in browser after push"},
{Name: "--skip-logs", Description: "Skip following logs after push"},
{Name: "--tag", Description: "Tag to identify this push"},
{Name: "--confirm", Description: "Release latest revision"},
{Name: "--listed", Description: "Listed on discovery"},
{Name: "--notes", Description: "Release notes"},
{Name: "--rid", Description: "Revision id for release"},
{Name: "--version", Description: "Version for the release"},
{Name: "--help", Description: "Display help"},
},
})
}