Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuildsCommand ¶
NewBuildsCommand returns the builds command with subcommands
func ResolveBuild ¶
func ResolveBuild(ctx context.Context, d *shared.Deps, client *asc.Client, opts ResolveBuildOptions) (*asc.BuildResponse, error)
ResolveBuild finds a build by ID, by app+build-number+platform, or by latest. Returns the build response or an error. Callers use this to avoid duplicating build lookup logic across commands (dsyms, wait, find, etc.).
Types ¶
type ResolveBuildOptions ¶
type ResolveBuildOptions struct {
BuildID string
AppID string
Version string
BuildNumber string
Platform string
Latest bool
ProcessingStateValues []string
ExcludeExpired bool
}
ResolveBuildOptions configures how a build is resolved.
type VersionBuildScope ¶
VersionBuildScope is the train a selector searches: builds of one app with the version's marketing version string and platform.
type VersionBuildSelector ¶
type VersionBuildSelector struct {
// contains filtered or unexported fields
}
VersionBuildSelector chooses the build to attach to an App Store version: an explicit --build-id, or --build-number or --latest within the version's train, optionally waiting for processing with --wait.
func BindVersionBuildSelectorWith ¶
func BindVersionBuildSelectorWith(d *shared.Deps, fs *flag.FlagSet) *VersionBuildSelector
BindVersionBuildSelectorWith binds the build selector flags to fs. The selector writes its errors and notes to d's streams and bounds its lookup with d's timeout.
func (*VersionBuildSelector) NeedsScope ¶
func (s *VersionBuildSelector) NeedsScope() bool
NeedsScope reports whether the build is chosen from the version's train.
func (*VersionBuildSelector) Resolve ¶
func (s *VersionBuildSelector) Resolve(ctx context.Context, client *asc.Client, scope VersionBuildScope) (string, error)
Resolve returns the selected build ID. --build-id without --wait makes no request.
func (*VersionBuildSelector) Validate ¶
func (s *VersionBuildSelector) Validate() error
Source Files
¶
- build_selector_flags.go
- build_test_notes.go
- builds.go
- builds_add_groups_diagnostics.go
- builds_app_encryption_declaration.go
- builds_commands.go
- builds_count.go
- builds_dsyms.go
- builds_dsyms_select.go
- builds_expire_all.go
- builds_groups.go
- builds_individual_testers.go
- builds_latest.go
- builds_local.go
- builds_metrics.go
- builds_related.go
- builds_relationships.go
- builds_uploads.go
- builds_wait.go
- builds_wait_pending.go
- resolve_build.go
- version_build_selector.go