Files
iris-context/commands/jvm/fvm.go
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

45 lines
2.3 KiB
Go

package jvm
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "fvm",
Description: "Print this usage information",
Subcommands: []spec.Subcommand{
{Name: "config", Description: "Set configuration for FVM"},
{Name: "path", Description: "Path to the Flutter versions cache"},
{Name: "dart", Description: "Proxies Dart commands"},
{Name: "doctor", Description: "Shows information about environment, and project configuration"},
{Name: "flavor", Description: "Switches between different project flavors"},
{Name: "flavor-name", Description: "The flavor to switch to"},
{Name: "flutter", Description: "Proxies Flutter commands"},
{Name: "global", Description: "Sets Flutter SDK version as global"},
{Name: "version", Description: "Flutter SDK to set for global flutter command"},
{Name: "install", Description: "Installs Flutter SDK version"},
{Name: "stable", Description: "Latest stable release of Flutter"},
{Name: "beta", Description: "Latest beta release of Flutter"},
{Name: "dev", Description: "Latest dev release of Flutter (master)"},
{Name: "list", Description: "Lists installed Flutter SDK versions"},
{Name: "releases", Description: "View all Flutter SDK releases available for install"},
{Name: "remove", Description: "Removes Flutter SDK version"},
{Name: "spawn", Description: "Spawn a Flutter SDK version command"},
{Name: "use", Description: "Sets a Flutter SDK version to be used in a project"},
},
Options: []spec.Option{
{Name: "-h", Description: "Print this usage information"},
{Name: "--verbose", Description: "Print verbose output"},
{Name: "--version", Description: "Current FVM version"},
{Name: "-c", Description: "Set the path which FVM will cache the version. Priority over FVM_HOME"},
{Name: "-s", Description: "Skip setup after a version install"},
{Name: "-g", Description: "ADVANCED: Will cache a local version of Flutter repo for faster version install"},
{Name: "--force", Description: "Skips version global check"},
{Name: "-f", Description: "Skips command guards that does Flutter project checks"},
{Name: "-p", Description: "If version provided is a channel. Will pin the latest release of the channel"},
{Name: "--flavor", Description: "Sets version for a project flavor"},
},
})
}