You can use the Catalog Browser?
In tools.
Is it not what you are looking for?

Stef

On Mon, Aug 21, 2017 at 3:58 PM, H. Hirzel <hannes.hir...@gmail.com> wrote:
> Thank you!
>
>
> "Produce a list of Pharo 6 catalog entries (tag: 'Pharo 6.0') in
> markdown format"
>
> | catalog |
> catalog :=  CatalogProvider default retrieveProjects select: [ :x |
>     (x at: 'repositoryUrl') =
> 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main' ].
>
> Transcript show: '# Pharo 6 catalog list'; cr.
>
> (catalog asSortedCollection: [ :a :b | (a at: 'name') < (b at: 'name')
> ]) do: [ :entry | Transcript show: '## ', (entry at: 'name') ; cr;
>         show:  (entry at: 'description'); cr;cr.
>         Transcript show: 'keywords: '.
>         (entry at: 'keywords') sorted do: [ :keyword | Transcript show:
> keyword; space ].
>         Transcript cr; cr].
>
> Transcript show: '# Pharo 6 catalog list - description is missing'; cr.
>
> (catalog asSortedCollection: [ :a :b | (a at: 'name') < (b at: 'name') ])
> do: [:entry | (entry at: 'description') ifNil: [ Transcript show: '-
> ', (entry at: 'name'); cr ]
>         ].
>
>
> --Hannes
>
> On 8/21/17, Pierce Ng <pie...@samadhiweb.com> wrote:
>> On Mon, Aug 21, 2017 at 11:06:36AM +0200, H. Hirzel wrote:
>>> What is the code snippet to get a list of all packages with a '6.0'
>>> tag and their description?
>>
>> "CatalogProject availableRepositoryURLStrings" gives:
>>
>>   #('http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main'
>>     'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main'
>>     'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main'
>>     'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo50/main'
>>     'http://www.squeaksource.com/MetacelloRepository')
>>
>> "CatalogProvider default retrieveProjects" gives an array of 456 items.
>> Each
>> item is a dictionary with a "repositoryUrl" key which matches one of the
>> above
>> strings. Therefore:
>>
>>   CatalogProvider default retrieveProjects select: [ :x |
>>     (x at: 'repositoryUrl') =
>> 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main' ]
>>
>>
>>> In Squeak I would just bring up the halo menu, then open an inspector
>>> on the Catalog Browser window and see what model is attached.
>>>
>>> How do I do this in Pharo these days?
>>
>> On Linux, shift-ctrl click the window, then from the menu select debug...
>> inspect model.
>>
>> Pierce
>>
>>
>>
>

Reply via email to