package cmd

import "github.com/spf13/cobra"

var qualityCmd = &cobra.Command{
	Use:                "quality [desloppify-args...]",
	Short:              "Code quality workflows powered by desloppify",
	DisableFlagParsing: true,
	RunE: func(cmd *cobra.Command, args []string) error {
		forward := args
		if len(forward) == 0 {
			forward = []string{"--help"}
		}
		return runDesloppifyFromCommand(cmd, forward, true)
	},
}

func init() {
	rootCmd.AddCommand(qualityCmd)
}
