public object SetVariable(string name, object value)
 {
     value = value ?? InputObject;
     try
     {
         if (name == null)
         {
             name = ReadLine("variable name");
         }
         return(variableService.Set(name, value));
     }
     catch (Exception ex)
     {
         SetException(ex);
         return(null);
     }
 }
Beispiel #2
0
 public void Run(string name, string value)
 {
     _loggingService.Log();
     _variableService.Set(name, value);
     _loggingService.Log($"{name} => {_variableService.Get(name).ToString()}");
 }