static ModelMap() { FolderSeparator = Os.IsWindows() ? "\\" : "/"; TemplateFormulasFolder = TokenTemplatesFolder + FolderSeparator + "formulas"; TemplateDefinitionsFolder = TokenTemplatesFolder + FolderSeparator + "definitions"; SpecificationsFolder = TokenTemplatesFolder + FolderSeparator + "specifications"; Latest = "latest"; Latest = "latest"; }
static void Main(string[] args) { Console.WriteLine("Execute system command:"); if (Os.IsWindows()) { Os.SystemCommand("echo You are on Windows"); } else if (Os.IsLinux()) { Os.SystemCommand("echo You are on Linux"); } Os.SystemCommand("git --version"); Console.ReadKey(); }