{"modulePath":"github.com/brevdev/brev-cli","version":"v0.6.337","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package helpers\n\n## Functions\n\n```go\nfunc ResolveNodeByName(ctx context.Context, nodeClient devplaneapiv1connect.ExternalNodeServiceClient, orgID string, nodeName string) (*nodev1.ExternalNode, error)\n```\nResolveNodeByName returns the full node for the organization that matches the given name (case-insensitive). Use in non-interactive flows when the node is specified by name (e.g. --node my-node).\n\n```go\nfunc ResolveOrgByName(getter OrganizationGetter, orgName string) (*entity.Organization, error)\n```\nResolveOrgByName returns the single organization matching the given name.\n\n```go\nfunc SelectOrganizationInteractive(t *terminal.Terminal, organizations []entity.Organization, selector terminal.Selector) (*entity.Organization, error)\n```\nSelectOrganizationInteractive prompts the user to select an organization from the list.\n\n## Types\n\n```go\ntype OrganizationGetter interface {\n\tGetOrganizationsByName(name string) ([]entity.Organization, error)\n}\n```\n\n","path":"github.com/brevdev/brev-cli/pkg/externalnode/helpers","name":"helpers","synopsis":"","isRedistributable":true}
