func (pe *PathExp) WithInstance(instance string) (*PathExp, error) {
	parts, err := Split("instance", instance)
	if err != nil {
		return nil, err
	}

	segment, err := parseMultiple("instance", parts)
	if err != nil {
		return nil, err
	}

	return &PathExp{
		org:        pe.org,
		project:    pe.project,
		envs:       pe.envs,
		services:   pe.services,
		identities: pe.identities,
		instances:  segment,
	}, nil
}
// WithInstance clones a PathExp, replacing its instance with the parsed value
// from the argument.
//
// XXX: this isn't really great. it would be nice to support all path types.
WithInstance clones a PathExp, replacing its instance with the parsed value
from the argument.

this isn't really great. it would be nice to support all path types.
// WithInstance clones a PathExp replacing its instance with the parsed value // from the argument . // // XXX : this isn ' t really great . it would be nice to support all path types .
func (pe *PathExp) WithInstance(instance string) (*PathExp, error) {
	parts, err := Split("instance", instance)
	if err != nil {
		return nil, err
	}
	segment, err := parseMultiple("instance", parts)
	if err != nil {
		return nil, err
	}
	return &PathExp{
		org:        pe.org,
		project:    pe.project,
		envs:       pe.envs,
		services:   pe.services,
		identities: pe.identities,
		instances:  segment,
	}, nil
}
func ( pe * PathExp ) WithInstance ( instance string ) ( * PathExp , error ) { parts , err := Split ( " " , instance ) if err != nil { return nil , err } segment , err := parseMultiple ( " " , parts ) if err != nil { return nil , err } return & PathExp { org : pe . org , project : pe . project , envs : pe . envs , services : pe . services , identities : pe . identities , instances : segment , } , nil }
WithInstance clones a PathExp, replacing its instance with the parsed value
from the argument.
WithInstance clones a PathExp replacing its instance with the parsed value from the argument .