func NewGroupEnvPromptWithCounter(configs []EnvConfig, store *Store) []strumt.Prompter {
	results := []strumt.Prompter{}
	c := &counter.Counter{}
	for i, config := range configs {
		f := parseEnvWithCounter(config.Validator, config.Env, config.DefaultValue, c, store)
		if i == len(configs)-1 {
			f = parseEnvWithCounterAndIncrement(config.Validator, config.Env, config.DefaultValue, c, store)
		}
		p := GenericPrompt{
			config.ID,
			config.PromptString,
			func(NextID string) func(string) string { return func(string) string { return NextID } }(config.NextID),
			func(ID string) func(error) string { return func(error) string { return ID } }(config.ID),
			f,
		}
		results = append(results, &p)
	}
	return results
}
NewGroupEnvPromptWithCounter gives the ability to create several group of related environment variable, a common prefix provided as a number from an internal counter tied variable together. For instance in variables environments TEST_*_KEY and TEST_*_VALUE, * is replaced with a number, it becomes TEST_0_KEY and TEST_0_VALUE another call would give TEST_1_VALUE and TEST_1_KEY
package builder
import (
	"strings"
	"github.com/antham/chyle/prompt/internal/counter"
	"github.com/antham/strumt/v2"
)