xref: /DADK/dadk/src/actions/mod.rs (revision eaa67f3cf8881c221a744937c6318444b068a801)
1 use crate::context::DADKExecContext;
2 
3 pub mod user;
4 
5 pub fn run(ctx: DADKExecContext) {
6     match &ctx.command.action {
7         crate::console::Action::Kernel => {
8             unimplemented!("kernel command has not implemented for run yet.")
9         }
10         crate::console::Action::Rootfs(_rootfs_command) => {
11             unimplemented!("rootfs command has not implemented for run yet.")
12         }
13         crate::console::Action::User(user_command) => {
14             user::run(&ctx, user_command).expect("Run user action error.")
15         }
16     }
17 }
18