xref: /DADK/dadk/src/actions/mod.rs (revision d2ade6ef037f43d0342021730a0d8b3af7bc36c1)
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