我正在和Pharo Smalltalk一起工作。假设您想要将自己的一组包保存到本地存储库中,您知道包的前缀是"MyPrefix“。这样做的正确信息是什么?在代码中:
| myPkgs |
myPkgs := MCPackage allInstances select: [: mcPkg | mcPkg name beginsWith: 'MyPrefix' ].
myPkgs do: [ : myPkg | myPkg ??? ].为基于web的存储库编写脚本太难了?
发布于 2011-11-14 04:32:56
packages := Gofer new allResolved
collect: [ :each | each packageName ] as: Set.
packages := packages select: [ :e | e beginsWith: 'Prefix' ].
gofer := Gofer new
disablePackageCache;
directory: '/path/to/repo'.
packages do: [ :p | gofer package: p ].
gofer commit: ''.发布于 2011-11-14 01:47:15
与加载或更新一组程序包的方式相同:
Gofer new
squeaksource: 'MyProject';
package: 'MyPrefix-Core';
package: 'MyPrefix-Tests';
commit你可以在这篇博文中找到更多信息:Gofer — Monticello and Groups of Packages。
https://stackoverflow.com/questions/8113351
复制相似问题