Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Request #11341 file list and edit 'screen'
Submitted: 2007-06-17 21:36 UTC
From: tias Assigned:
Status: Verified Package: PEAR_PackageFileManager_Cli (version 0.2.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-06-17 21:36 UTC] tias (Tias Guns)
Description: ------------ Hi, I really like this packages, its easy to use and straightforward. Something that I would find usefull is a new option: 'edit file list'. This would list all the files and there attributes (baseinstalldir & role), and it would allow you to change those attributes. Greetz, Tias

Comments

 [2007-06-18 10:40 UTC] shangxiao (David Sanders)
Did you mean what files go into the listing or more specifically the attributes for those files? Ability to set the baseinstalldir and role would be good. There also definately needs to be more control over what files get listed. The next thing to do would be to list the filelisting generator plugins that pfm uses. Then after that I guess pfm_cli could interact with pfm's add and ignore patterns api.
 [2007-06-18 11:10 UTC] tias (Tias Guns)
I'm not familiar with PFM's technical details, but I was thinking something more easy in the line of generateContents(&$pfm): After having PFM use its plugin(s) to make a filelisting, use $pfm->getFilelist() to list all generated files, like: Nr Instdir Role Name -------------------- #1 PEAR php example.php #2 PEAR php example/more.php #3 PEAR doc README #4 PEAR data data/image.png > Choose a filenumber to edit or 0 to return You could then change each file's role and baseinstalldir. When doing a 'save & exit' this would be saved, when doing a 'regenerate contents', these changes would be lost.
 [2007-06-18 11:35 UTC] shangxiao (David Sanders)
Sounds good, although, when regenerating the contents, baseinstalldir and role are not changed, just the md5sum (which is good). To cancel the changes you'd just exit without saving.