How yuk7/wsldl works
wsldl is a Windows launcher and installer for WSL distributions. Users invoke a renamed executable; the entry point selects install for an unregistered distribution or launch for a registered one, and dispatches explicit commands for configuration, querying, backup, cleanup, and help. Install supports rootfs archives and ext4 VHDX images; launch supports interactive shells, commands, and Windows-path translation. The graph includes the WSL and registry adapter as an internal boundary. Some subsystems are documented in the README but their full implementations were not sampled, so only evidenced links are drawn.
Main entry points: main.go Command dispatcher · impl.go WSL adapter · config/command.go Set configuration · get/command.go Read settings
Components 15
CLI entry
- Command dispatcher
src/main.go - Help output
src/help/command.go
Distribution lifecycle
- Install distribution
src/install/install.go - Download files
src/lib/download/download.go - Launch distro
src/run/command.go - Export backup
src/backup/backup.go - Remove distro
src/clean/clean.go
Instance operations
- Set configuration
src/config/command.go - Read settings
src/get/command.go - Terminal profile lookup
src/lib/wtutils/wtutils.go
WSL integration
- WSL adapter
src/lib/wsllib/impl.go - WSL config helpers
src/lib/wslapi/config.go
Other components
- Executable user
- Windows WSL services
- WSL registry
Connections 23
- Executable user → Command dispatcher: invokes
- Command dispatcher → Install distribution: dispatches
src/main.go - Command dispatcher → Launch distro: dispatches
src/main.go - Command dispatcher → Set configuration: dispatches
src/main.go - Command dispatcher → Read settings: dispatches
src/main.go - Command dispatcher → Export backup: dispatches
src/main.go - Command dispatcher → Remove distro: dispatches
src/main.go - Command dispatcher → Help output: dispatches
src/main.go - Command dispatcher → WSL adapter: creates dependencies
src/main.go - Install distribution → Download files: downloads
src/install/install.go - Install distribution → WSL adapter: registers distro
src/install/install.go - Launch distro → WSL adapter: launches distro
src/run/command.go - Set configuration → WSL config helpers: reads config
src/config/command.go - Set configuration → WSL adapter: updates config
src/config/command.go - Set configuration → WSL registry: updates profile
src/config/command.go - Read settings → WSL config helpers: reads config
src/get/command.go - Read settings → WSL registry: reads profile
src/get/command.go - Read settings → Terminal profile lookup: reads terminal profile
src/get/command.go - Export backup → WSL adapter: exports distro
- Export backup → WSL registry: exports registry
- Remove distro → WSL adapter: unregisters distro
- WSL adapter → Windows WSL services: calls WSL API
src/lib/wsllib/impl.go - WSL adapter → WSL registry: calls registry API
src/lib/wsllib/impl.go