feat(commands): more commands (#30)

- 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
This commit is contained in:
VERSE
2026-07-04 22:08:36 +07:00
committed by GitHub
parent ffa336196a
commit 2ef3c90819
482 changed files with 22971 additions and 5 deletions
+41
View File
@@ -0,0 +1,41 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "astro",
Description: "Add an integration",
Subcommands: []core.Subcommand{
{Name: "add", Description: "Add an integration"},
{Name: "build", Description: "Build your project and write it to disk"},
{Name: "check", Description: "Check your project for errors"},
{Name: "dev", Description: "Starts the development server"},
{Name: "docs", Description: "Open documentation in your web browser"},
{Name: "preview", Description: "Preview your build locally"},
{Name: "sync", Description: "Generate content collection types"},
{Name: "telemetry", Description: "Configure telemetry settings"},
{Name: "enable", Description: "Enable anonymous data collection"},
{Name: "disable", Description: "Disable anonymous data collection"},
{Name: "reset", Description: "Reset anonymous data collection settings"},
},
Options: []core.Option{
{Name: "--yes", Description: "Accept all prompts"},
{Name: "--drafts", Description: "Include Markdown draft pages in the build"},
{Name: "--watch", Description: "Watch Astro files for changes and re-run checks"},
{Name: "--port", Description: "Specify a port to listen on"},
{Name: "--host", Description: "Listen on all addresses, including LAN and public addresses"},
{Name: "--open", Description: "Automatically open the app in the browser on server start"},
{Name: "--config", Description: "Specify your config file"},
{Name: "--root", Description: "Specify your project root folder"},
{Name: "--site", Description: "Specify your project site"},
{Name: "--base", Description: "Specify your project base"},
{Name: "--verbose", Description: "Enable verbose logging"},
{Name: "--silent", Description: "Disable all logging"},
{Name: "--version", Description: "Show the version number and exit"},
{Name: "--help", Description: "Show help for astro"},
},
})
}