public static int ChooseFromList(string promptMessage = null, params string[] listItems) { if (promptMessage == null) { promptMessage = $"> Choose between {1}-{listItems.Count()}"; } PrintStuff.PrintList(listItems); var number = ChooseInt(promptMessage, 1, listItems.Count()); return(number); }
public static ObjectPrinter <T> PrintCustomObjects <T>(List <T> objectsToBePrinted) { return(PrintStuff.PrintObjects(objectsToBePrinted).Configure(ObjectPrinterOptions.UseOnlyCustomFields)); }
public static ObjectPrinter <T> PrintObjects <T>(List <T> objectsToBePrinted) => PrintStuff.PrintObjects(objectsToBePrinted);
public static ObjectPrinter <T> PrintObject <T>(T objectToBePrinted) => PrintStuff.PrintObject(objectToBePrinted);
public static void PrintLine(string printLine) => PrintStuff.PrintLine(printLine);
/// <summary> /// Prints a list and waits for key to continue /// </summary> public static void PrintList(params string[] list) => PrintStuff.PrintList(list);