pharo-project / pharo-launcher

Lets you manage your pharo images and download new ones
https://pharo-project.github.io/pharo-launcher/
MIT License
108 stars 46 forks source link

Print image process list in nice formatted way #616

Closed Bajger closed 4 months ago

Bajger commented 1 year ago

Print image process list in nice formatted way

Describe the request Currently, image process list don't show any header and prints in not nice format list of processes (pgrep ouptut)

Expected behavior Process list should show header and each line should be formatted to the expected header like:

~/pharo-launcher$ ./pharo-launcher.sh image processList
#  PID  Image name VM path                                                         Image path                                     Date/Time started       
-- ---- ---------- --------------------------------------------------------------- ---------------------------------------------- ------------------------
1  4291 s1         /home/dbajger/Pharo/vms/100-x64/lib/pharo                       /home/dbajger/Pharo/images/s1/s1.image         Thu May 18 13:55:19 2023
2  4338 latest     /home/dbajger/Pharo/vms/90-x64/lib/pharo/5.0-202002121043/pharo /home/dbajger/Pharo/images/latest/latest.image Thu May 18 13:55:25 2023

Expected development cost 1) Introduce new PhLImageProcess class that would include information about:

2) Create image process object list from OS process command output 3) list the process list using ConsoleListFormatter