dotnetcore/FlubuCore

FlubuCore Setup - Directories and files suggestions

mzorec opened this issue · 3 comments

In flubu setup suggestions for directories and file names should be added similar as in Flubu interactive mode when typing cd command.

  • When entering script location only .cs files should be suggested
  • When entering csproj location only .csproj files should be suggested
  • When entering .json(configuration file) location only .json files should be suggested.

one idea has crossed my mind: maybe flubu setup can help the user a little bit for .csproj file, like this:

Enter path to script file (.cs) (enter to skip): Build/BuildScript.cs
Is 'Build/Build.csproj' your build project? [Y]es/[N]o: 

after the user entered .cs file, flubu checks if there is a .csproj file at the location of the .cs file (no need for recursive searching), if there is one and only one csproj file, then ask the user is it your build project, otherwise ask user the location of .csproj file.

If answered Yes: accept that .csproj file.
If answered No: ask user the location of .csproj file.

Reason for this idea:

  • can save users a little time.
  • build project is usually at the same location with build script .cs fle.

Sounds good. Alternative to yes/no is that the csproj location is offered as a hint. If user press enter hinted csproj file is accepted. Otherwise if user start's typing hint disapears. Not sure what would be better :)

Hints in interactive mode:

image

Sounds good. Alternative to yes/no is that the csproj location is offered as a hint. If user press enter hinted csproj file is accepted. Otherwise if user start's typing hint disapears. Not sure what would be better :)

Hints in interactive mode:

image

Cool! Yes, that's even better! Hint+1