INNER CODE UNIT · Go
func
kitops-ml/kitops · pkg/cmd/diff/cmd.go:154
func (opts *diffOptions) complete(ctx context.Context, args []string) error {
configHome, ok := ctx.Value(constants.ConfigKey{}).(string)
if !ok {
return fmt.Errorf("default config path not set on command context")
}
opts.configHome = configHome
imageName := removePrefix(args[0])
refA, _, err := artifact.ParseReference(imageName)
if err != nil {
return fmt.Errorf("failed to parse reference for ref1: %w", err)
}
opts.refA = refA
imageName = removePrefix(args[1])
refB, _, err := artifact.ParseReference(imageName)
if err != nil {