FlubuCore Setup - Directories and files suggestions
mzorec opened this issue · 3 comments
mzorec commented
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.
huanlin commented
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.
mzorec commented
huanlin commented