Ejemplo n.º 1
0
 public override bool Execute(DefaultStreamWriter console, string optionArgument1, string optionArgument2, string optionArgument3, string optionArgument4, List <string> arguments)
 {
     try
     {
         console.Write(System.Runtime.InteropServices.RuntimeInformation.OSDescription);
         return(true);
     }
     catch (System.Exception)
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 public override bool Execute(DefaultStreamWriter console, string optionArgument1, string optionArgument2, string optionArgument3, string optionArgument4, List <string> arguments)
 {
     try
     {
         console.Write(System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());
         return(true);
     }
     catch (System.Exception)
     {
         return(false);
     }
 }