Ejemplo n.º 1
0
 private void run_delete(WrCommand _command)
 {
     _command.RequireFilesExistInRepo();
     foreach (string argument in _command.Arguments)
     {
         File.Delete(Path.Combine(Program.RepoName, argument));
     }
 }
Ejemplo n.º 2
0
 private void run_pull(WrCommand _command)
 {
     _command.RequireFilesNotExistLocally();
     _command.RequireFilesExistInRepo();
     foreach (string argument in _command.Arguments)
     {
         File.Copy(Path.Combine(Program.RepoName, argument), argument);
     }
 }