diff src/main.rs @ 20:da4858f4658d

impl define cmd
author AnaTofuZ <k198584@ie.u-ryukyu.ac.jp>
date Tue, 03 Nov 2020 17:21:27 +0900
parents d37203a877d9
children 78f246ce5235
line wrap: on
line diff
--- a/src/main.rs	Tue Nov 03 11:10:24 2020 +0900
+++ b/src/main.rs	Tue Nov 03 17:21:27 2020 +0900
@@ -120,7 +120,10 @@
             command::start(user_name, arg.name);
         }
 
-        SubCommand::Define(name) => {}
+        SubCommand::Define(arg) => {
+            user::set_root_id();
+            command::define(user_name, arg.name);
+        }
 
         SubCommand::Shutdown(arg) => {
             user::set_root_id();