Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public CompileTask(IUserInterface ui, string rootAppPath)
     : this(rootAppPath, ui.Ask("Turn on (d)ebug mode?", "d,y"))
 {
 }
Exemplo n.º 4
0
 public CompileTask(IUserInterface ui)
     : this(ui, ui.Ask("What is the root path of your app?"))
 {
 }