Export Package from the Smalltalk Image
Export a package from the running Smalltalk image back to Tonel files.
Usage
/st-export PackageName /absolute/path/to/src
Steps
- Call
export_packagewith package name and absolute path to thesrc/directory - Report the exported files or any error
When to Use
Export is the exception, not the norm. Use only when the Smalltalk image has newer code than Tonel files:
- Fixed code in the debugger
- Generated boilerplate using Smalltalk tools
- Made changes directly in the class browser
Notes
- Normally, edit Tonel files and import — AI editor is the source of truth
- Export overwrites existing
.stfiles in the directory - Always use absolute paths
Examples
/st-export MyPackage /home/user/project/src
/st-export MyPackage-Tests /home/user/project/src