Hi! Does anybody have at hand a one liner to load into Pharo a set of files in tonel format? I have them in a directory without any git repo. Cheers, Javier
Hi Javier, You can use the URL with spec 'tonel://' to create a new Monticello repository that uses Tonel. For example: MCRepository fromUrl: 'tonel://path/to/my/directory'. and then use it as a regular Monticello repository. For example you can do: ((MCRepository fromUrl: 'tonel://path/to/my/directory') versionFromFileNamed: 'PackageName') snapshot definitions And will return all the definitions for the package. Also, you can use it through the UI of Monticello. Cheers, Pablo On Sun, Mar 22, 2020 at 5:05 AM Javier Pimás <elpochodelagente@gmail.com> wrote:
Hi! Does anybody have at hand a one liner to load into Pharo a set of files in tonel format? I have them in a directory without any git repo.
Cheers, Javier
-- Pablo Tesone. tesonep@gmail.com
On Sun, Mar 22, 2020 at 10:05 AM tesonep@gmail.com <tesonep@gmail.com> wrote:
Hi Javier,
You can use the URL with spec 'tonel://' to create a new Monticello repository that uses Tonel.
For example:
MCRepository fromUrl: 'tonel://path/to/my/directory'. and then use it as a regular Monticello repository. For example you can do:
((MCRepository fromUrl: 'tonel://path/to/my/directory') versionFromFileNamed: 'PackageName') snapshot definitions
Thanks!! that let me inspect the definitions. Then I did: definitions do: [:d | [d load] on: Exception do: []] a couple of times (just in case there existed unresolved references). Is there a better way to file them in? Cheers! Javier.
And will return all the definitions for the package. Also, you can use it through the UI of Monticello.
Cheers, Pablo
On Sun, Mar 22, 2020 at 5:05 AM Javier Pimás <elpochodelagente@gmail.com> wrote:
Hi! Does anybody have at hand a one liner to load into Pharo a set of
files in tonel format? I have them in a directory without any git repo.
Cheers, Javier
-- Pablo Tesone. tesonep@gmail.com
-- Javier Pimás Ciudad de Buenos Aires
participants (2)
-
Javier Pimás -
tesonep@gmail.com