-
Notifications
You must be signed in to change notification settings - Fork 651
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
If someone wants to "override" a set of providers from a larger set, it would be helpful to have the gowire tool output the minimal code to create a new provider set that "carves out" the given provider from the set. Ideal workflow:
$ gowire subtract github.com/google/go-cloud/gcp/gcpcloud.GCP github.com/google/go-cloud/gcp.ProjectID
import (
"github.com/google/go-cloud/gcp"
"github.com/google/go-cloud/gcp/gcpcloud"
"github.com/google/go-cloud/wire"
)
var Set = wire.NewSet(
gcpcloud.Services,
gcp.CredentialsTokenSource,
gcp.DefaultCredentials,
)
Perhaps this would include an interactive mode that shows you everything in the provider set and lets you pick which types to remove by menu, since typing type names is arduous.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request