Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorText ¶
ErrorText uses the same flag parser without executing a command or touching state. Malformed flags and unknown commands deliberately keep their diagnostic unstyled.
func NewLegacyLifecycle ¶
func NewLegacyLifecycle(statePath string) ports.LegacyLifecycle
Types ¶
type App ¶
type App struct {
Prompter prompt.Prompter
PromptFactory func(io.Reader, io.Writer, io.Writer, bool, bool) (prompt.Prompter, io.Writer, error)
Version string
UserHome string
ManagedRoot string
StateStore transaction.StateStore
Detector ports.ClientDetector
// ClientRegistry is the set of client adapters this binary knows about. The
// composition root decides it; CLI commands receive the already-built planner
// and never reconstruct one.
ClientRegistry *clients.Registry
Planner ports.DeliveryPlanner
Targets ports.DeliveryTargetResolver
DirectoryClient DirectoryClient
DiscoveryClient DiscoveryClient
SourceAcquirer SourceAcquirer
PackageLoader ports.PackageLoader
NativePackageLoader ports.PackageLoader
SecurityIndex SecurityIndex
SecurityEvaluator ports.PackageSecurityEvaluator
// Installer is the public facade used by the qualified explicit local
// package path. Other CLI acquisition and lifecycle paths remain on the
// existing service until their contracts are qualified separately.
Installer *installer.Engine
Lifecycle usecase.Service
StateMigrator *statemigration.Migrator
LegacyLifecycle ports.LegacyLifecycle
LegacyStateLock legacyports.LockManager
Input io.Reader
Output io.Writer
ErrorOutput io.Writer
Terminal bool
// contains filtered or unexported fields
}
type DirectoryClient ¶
type DirectoryClient interface {
Load(context.Context, uint64) (directoryv1.VerifiedBundle, error)
}
type DiscoveryClient ¶
type DiscoveryClient interface {
Load(context.Context, uint64) (discoveryv1.VerifiedBundle, error)
}
type SecurityIndex ¶
type SecurityIndex interface {
Lookup(context.Context, domain.SecuritySubject) (*domain.SecurityAssessment, error)
}
type SourceAcquirer ¶
type SourceAcquirer interface {
AcquireLocal(context.Context, string) (domain.PackageSnapshot, error)
DiscoverGitHubPackages(context.Context, string, string) ([]string, error)
AcquireGitHub(context.Context, string, string, string) (domain.PackageSnapshot, error)
AcquireGitHubVerified(context.Context, string, string, string, string) (domain.PackageSnapshot, error)
}
Source Files
¶
- add.go
- add_multi.go
- add_result.go
- add_targets.go
- app.go
- binding.go
- chatgpt_guidance.go
- client_policy.go
- color_error.go
- engine_boundary.go
- engine_switch.go
- group_progress_board.go
- group_progress_resize_unix.go
- installer_facade.go
- interactive_directory.go
- interactive_loaded.go
- interactive_targets.go
- legacy_controller.go
- lifecycle.go
- opencode_runtime_notice.go
- outdated.go
- output.go
- plan_review.go
- plan_review_format.go
- preflight.go
- prepare.go
- prepared_client.go
- prompts.go
- read.go
- read_directory.go
- read_reconciliation.go
- remove_multi.go
- repair_multi.go
- root.go
- search.go
- security.go
- source.go
- state_migration.go
- target_batch.go
- update_all.go
- update_multi.go
- validate.go
Click to show internal directories.
Click to hide internal directories.