Refactoring the Shell
Created by: stratact
- Remove the evil magic of the static mut raw pointer for
Application
- Remove the
Application
struct all together - Move
Application
's fields as variable bindings infn main()
- Move
Application
's methods as functions- Update the function signatures to mutably borrow the types they used from
Application
- Update the function signatures to mutably borrow the types they used from
- Add a
&mut Vec<Variable>
argument toCommand
's boxed closure to accept the environment variables lifetimes inside themain
field - Temporarily remove the
run
command because of bugs.- Use
exec file:/apps/shell/main.bin <shellprogram>
in the meantime.
- Use
- Replace all
Vec::new()
expressions withvec![]
macros.