mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-12 18:43:15 -06:00
20 lines
395 B
Go
20 lines
395 B
Go
package cmd
|
|
|
|
import (
|
|
"oizys/internal/oizys"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var dryCmd = &cobra.Command{
|
|
Use: "dry",
|
|
Short: "poor man's nix flake check",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
oizys.Dry(verbose, minimal, args...)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(dryCmd)
|
|
dryCmd.Flags().BoolVarP(&minimal, "minimal", "m", false, "use system dry-run to make build args")
|
|
}
|