Bug 7273

Summary: Display all configuration files found during the setup process to ease selection
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: enhancement    
Priority: Low CC: alexandru.costinx.roman, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, jessica.zhang
Version: unspecified   
Target Milestone: 1.8 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2015-02-02 17:17:32 UTC
When you set up Toaster, you are shown the different configuration files found one by one. If you select one by typing 'y', the configuration for that file is imported. If you type 'n' instead, you are shown the next configuration file found (if any, otherwise Toaster starts without importing any configuration file).

After some discussion, we have agreed that it might be easier to show all configuration files found on a list, from which users can select by typing a number. Something like so:

Toaster can use a configuration file to set up default project settings and layer information sources. Toaster will now list all the configuration files found in your computer. Select the configuration file you want to use by typing its number, or press Enter to skip this step:

[1] - /home/yocto/master/meta-yocto/conf/toasterconf.json
[2] - /home/yocto/dizzy/meta-yocto/conf/toasterconf.json
[3] - /home/yocto/something/meta-yocto/conf/toasterconf.json

Type the number of the file you want to use or press Enter to skip this step:

If Toaster only finds one configuration file, we can default to that one, like so:

Toaster can use a configuration file to set up default project settings and layer information sources. Toaster has found the configuration file "/home/user/poky/meta-yocto/conf/toasterconf.json". Do you want to use it? (Y/n):
Comment 1 Alexandru Damian 2015-02-05 12:15:49 UTC
Pushed for review on 

poky-contrib:adamian/20150204-bug-7283
Comment 2 Alexandru Damian 2015-02-11 11:48:08 UTC
Merged in master.
Comment 3 Alexandru Roman 2015-11-27 11:54:28 UTC
Verified.