Example #1
0
 private void run_delete(WrCommand _command)
 {
     _command.RequireFilesExistInRepo();
     foreach (string argument in _command.Arguments)
     {
         File.Delete(Path.Combine(Program.RepoName, argument));
     }
 }
Example #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);
     }
 }