Files
iris-context/commands/rust/dprint.go
T
VERSE 2ef3c90819 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
2026-07-04 22:08:36 +07:00

32 lines
1.5 KiB
Go

package rust
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "dprint",
Description: "Prints the help of the given subcommand(s)",
Subcommands: []core.Subcommand{
{Name: "init", Description: "Initializes a configuration file in the current directory"},
{Name: "fmt", Description: "Formats the source files and writes the result to the file system"},
{Name: "check", Description: "Checks for any files that haven't been formatted"},
{Name: "config", Description: "Functionality related to the configuration file"},
{Name: "add", Description: "Adds a plugin to the configuration file"},
{Name: "update", Description: "Updates the plugins in the configuration file"},
{Name: "output-format-times", Description: "Prints the amount of time it takes to format each file. Use this for debugging"},
{Name: "clear-cache", Description: "Deletes the plugin cache directory"},
{Name: "license", Description: "Outputs the software license"},
},
Options: []core.Option{
{Name: "--excludes", Description: "A pluggable and configurable code formatting platform written in Rust"},
{Name: "--diff", Description: "Outputs a check-like diff of every formatted file"},
{Name: "--stdin", Description: "Checks for any files that haven't been formatted"},
{Name: "-y", Description: "Upgrade process plugins without prompting to confirm checksums"},
{Name: "-c", Description: "Prints help information"},
{Name: "--plugins", Description: "Prints additional diagnostic information"},
},
})
}