Skip to content

Fix the berry command to call proper Validate() function #193

@digitalghost-dev

Description

@digitalghost-dev

The berry command incorrectly calls ValidateTypesArgs().

A ValidateBerryArgs() function doesn't currently exist.

New function in v1.7.3:

func ValidateBerryArgs(args []string) error {
	if err := checkLength(args, 3); err != nil {
		return err
	}

	if err := checkNoOtherOptions(args, 3, "<types>"); err != nil {
		return err
	}

	return nil
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/fixSomething isn't working or needs updating.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions