Mid-Term Report

Mojca Miklavec mojca at macports.org
Thu Jun 26 13:22:22 PDT 2014


On Thu, Jun 26, 2014 at 9:29 PM, Shashwat Pandey wrote:
> I am a Google Summer of Code 2014 student working on the 'Interactive Port
> Command' project for Macports. I have been working for about a month now and
> would like to show the progress i have made.
>
> # Implemented the API for putting up interactive questions.
> # Added global flag '-N' for non-interactive invocations. Interactivity is
> the default behaviour.
> # Implemented interactive questions in four places.
>
> You can find more details about the project here.
> To check out the code, visit the repository here.
>
> Examples of interactivity:
> In case of ambiguous activate, the API presents the user with a list and
> asks for the option they would like to activate.
> $ sudo port activate dummy
> Password:
> The following versions of dummy are currently installed:
>  1) dummy @111~rc1_0
>  2) dummy @333~rc1_0
>  3) dummy @999~rc1_0 (active)
> Enter a number to select an option: 2
> --->  Deactivating dummy @999~rc1_0
> --->  Cleaning dummy
> --->  Activating dummy @333~rc1_0
>
>
> In case of ambiguous uninstall, the API again presents a list but this time
> asks the user to enter all the options they would like to select.
> $ sudo port uninstall dummy
> Password:
> The following versions of dummy are currently installed:
>  1) dummy @111~rc1_0
>  2) dummy @333~rc1_0 (active)
>  3) dummy @999~rc1_0
> Enter the numbers to select the options: 1 2
> --->  Uninstalling dummy @111~rc1_0
> --->  Deactivating dummy @333~rc1_0
> --->  Cleaning dummy
> --->  Uninstalling dummy @333~rc1_0

Will this also support entering something like "1-3 5 8-10"?

Mojca


More information about the macports-dev mailing list