Skip to content

Commit

Permalink
fury init now gets a bit further
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Mar 24, 2024
1 parent eb1b2fa commit 4ca4e55
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/cli/actions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,10 @@ object actions:
def initialize(directory: Path)(using CliFrontEnd): ExitStatus raises UserError =
given (UserError fixes DismissError) = accede
if (directory / p".fury").exists() then abort(UserError(msg"A build already exists in this directory"))
info(msg"Creating a new build in $directory")

interactive:
info(e"$Italic(Please enter the project name:)")
LineEditor(t"hello-world", 11).ask: choice =>
info(e"You chose $Bold($choice)")
Out.print(e"$Italic(Please enter the project name:) ")
LineEditor(t"hello-world", 0).ask: choice =>
Out.println(e"You chose $Bold($choice)")
//val (name, events2) = LineEditor(t"hello-world").ask(events)
//info(e"Project has the name $name")

Expand Down

0 comments on commit 4ca4e55

Please sign in to comment.