static int myOS = -1; //-1 don't know, 0 windows, 1 Linux, 2 OSx public static void PrintOS() { UI.white(); Console.Write("Current OS: "); UI.yellow(); Console.Write(RuntimeInformation.OSDescription); Console.Write(Environment.NewLine); UI.white(); }
public static void WriteVersion() { UI.white(); Console.Write("Current Version: "); UI.yellow(); string stringval = curVers.ToStr(); Console.Write(stringval); Console.Write(Environment.NewLine); UI.white(); }
public static bool GitIgnorecheck() { bool output = File.Exists(ignorepath); if (!output) { UI.yellow(); Console.WriteLine("Warning no gitignore found, create one? (y/n)"); string resp = Console.ReadLine(); UI.white(); if (resp == "y") { GenerateGitIgnore(GetIgnoreRules()); return(true); } else { return(false); } } return(true); }
public static void giveWarning(string msg) { UI.yellow(); Console.WriteLine("WARNING: " + msg); UI.white(); }