How vladglass0/fakebuild works
fakebuild is a Go command-line launcher that simulates a Gentoo emerge build, then starts a configured real application. The principal workflow is user command → alias lookup and option handling → timed build animation → foreground or detached launch. The README also documents help and alias-list commands. The sampled source shows simulation phases and process-launch behavior, but omitted sections limit certainty about their exact internal dispatch, so they are summarized rather than wired as a detailed phase chain.
Main entry points: main.go CLI Entry · aliases.go Alias Configuration
Components 11
CLI and Aliases
- CLI Entry
main.go - Alias Configuration
aliases.go - Help and List
main.go
Build Simulation
- Fake Build
main.go - Emerge Phases
main.go - Fake Build Metrics
main.go
Application Launch
- Mode Selection
main.go - Detached Launcher
main.go - Foreground Launcher
main.go
Other components
- User
- Configured Application
Connections 11
- User → CLI Entry: runs command
- CLI Entry → Help and List: dispatches help/list
- CLI Entry → Alias Configuration: looks up alias
- CLI Entry → Fake Build: starts animation
- Fake Build → Emerge Phases: renders phases
- Emerge Phases → Fake Build Metrics: prints simulated data
- CLI Entry → Mode Selection: selects launch mode
- Mode Selection → Detached Launcher: chooses background
- Mode Selection → Foreground Launcher: chooses foreground
- Detached Launcher → Configured Application: starts detached
- Foreground Launcher → Configured Application: runs and waits