- 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
30 lines
858 B
Go
30 lines
858 B
Go
package rust
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "cargo",
|
|
Description: "rust toolchain",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "build", Description: "compile project",
|
|
Options: []spec.Option{
|
|
{Name: "--release", Description: "optimized build"},
|
|
},
|
|
},
|
|
{Name: "run", Description: "run project"},
|
|
{Name: "test", Description: "run tests"},
|
|
{Name: "new", Description: "create project"},
|
|
{Name: "add", Description: "add dependency"},
|
|
{Name: "fmt", Description: "format code"},
|
|
{Name: "clippy", Description: "lint code"},
|
|
{Name: "check", Description: "check without build"},
|
|
{Name: "clean", Description: "remove build artifacts"},
|
|
{Name: "publish", Description: "publish crate"},
|
|
{Name: "doc", Description: "build documentation"},
|
|
},
|
|
})
|
|
}
|