public BootstrapTask(IUserInterface ui) { string appName = ui.Ask("What is the name of your new app?"); string partialAppPath = ui.Ask("Where should " + appName + " be stored?"); string fullAppPath = Dirs.CleanAndCombine(partialAppPath, appName); Settings = new AppSettings(fullAppPath); }
public void GetUserInformation() { ui.Tell("Greetings and Hello!"); var name = ui.Ask("What is your name?"); var color = ui.Ask("What is your favorite color?"); var number = ui.Ask("What is your favorite number?"); ui.Tell($"Hi {name}. Your favorite color is {color}. Your favorite number is {number}."); Console.WriteLine(Environment.NewLine); }
public CompileTask(IUserInterface ui, string rootAppPath) : this(rootAppPath, ui.Ask("Turn on (d)ebug mode?", "d,y")) { }
public CompileTask(IUserInterface ui) : this(ui, ui.Ask("What is the root path of your app?")) { }