INNER CODE UNIT · Go
DiffCommand
kitops-ml/kitops · pkg/cmd/diff/cmd.go:69
func DiffCommand() *cobra.Command {
opts := &diffOptions{}
cmd := &cobra.Command{
Use: "diff <ModelKit1> <ModelKit2>",
Short: shortDesc,
Args: cobra.ExactArgs(2),
Long: longDesc,
Example: examples,
RunE: runCommand(opts),
}
opts.AddNetworkFlags(cmd)
cmd.Flags().SortFlags = false
return cmd
}
func runCommand(opts *diffOptions) func(cmd *cobra.Command, args []string) error {
return func(cmd *cobra.Command, args []string) error {
if err := opts.complete(cmd.Context(), args); err != nil {