예제 #1
0
파일: Program.cs 프로젝트: EkardNT/CS143B
 private static void On(InitCommand command)
 {
     if (command.SerializationFilePath == null)
     {
         fileSystem.Init();
         WriteSuccessLine("disk initialized");
     }
     else
     {
         fileSystem.Load(command.SerializationFilePath);
         WriteSuccessLine("disk restored");
     }
 }
예제 #2
0
 public override bool TryBuildCommand(string[] args, out object command)
 {
     var @in = (command = new InitCommand()) as InitCommand;
     AcceptPath(args, 0, out @in.SerializationFilePath);
     return true;
 }