func (c Commands) Match(name string) (Command, error) {
	for _, c := range c {
		if name == c.name {
			return c, nil
		}
	}
	return Command{}, fmt.Errorf("no matching command")
}
// Match attempts to find a command that matches
// the provided name, returning an error if it
// does not exist
Match attempts to find a command that matches
the provided name, returning an error if it
does not exist
// Match attempts to find a command that matches // the provided name returning an error if it // does not exist
func (c Commands) Match(name string) (Command, error) {
	for _, c := range c {
		if name == c.name {
			return c, nil
		}
	}
	return Command{}, fmt.Errorf("no matching command")
}
func ( c Commands ) Match ( name string ) ( Command , error ) { for _ , c := range c { if name == c . name { return c , nil } } return Command { } , fmt . Errorf ( " " ) }
Match attempts to find a command that matches
the provided name, returning an error if it
does not exist
Match attempts to find a command that matches the provided name returning an error if it does not exist