tcalmant / ipopo

iPOPO: a Service-Oriented Component Model for Python
https://ipopo.readthedocs.io/
Apache License 2.0
69 stars 28 forks source link

Provide a shortcut to do "install + start" #91

Closed matthieucan closed 6 years ago

matthieucan commented 6 years ago

In the Pelix shell, I often find myself running install foo and start bar, bar being the bundle id of foo. A command to install+start would surely be useful!

tcalmant commented 6 years ago

Agreed, as it could also be easily implemented:

tcalmant commented 6 years ago

Fixed. You can now use both methods:

$ install pelix.http.basic
Bundle ID: 14
$ start $?
Starting bundle 14 (pelix.http.basic)...

and

$ start pelix.http.basic
Bundle ID: 14
Starting bundle 14 (pelix.http.basic)...

Note: The $? variable is not set by start as it accepts multiple IDs at once. It is therefore recommended to use install in init scripts if you want to keep track of bundle IDs.

matthieucan commented 6 years ago

Wow, that was fast :) Thanks a lot!

tcalmant commented 6 years ago

Some tests must be updated after this change