我正在与Pharo Smalltalk合作。假设您要将自己的软件包组保存到本地存储库中,那么您知道软件包的前缀为“MyPrefix”。什么是正确的信息呢?在代码中:
| myPkgs |
myPkgs := MCPackage allInstances select: [: mcPkg | mcPkg name beginsWith: 'MyPrefix' ].
myPkgs do: [ : myPkg | myPkg ??? ].
为基于Web的存储库编写脚本很难太难了吗?
最佳答案
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: ''.
关于smalltalk - 一次保存多个Monticello软件包,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8113351/