mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-23 11:18:28 +00:00
Major refactoring: access to context happens in methods. #13
This commit is contained in:
1 parent
400d0da7d4
commit
2c3553ef0b
31 files changed
+333
-265
No files matched your search
+3
-3
@@ -14,11 +14,11 @@ func aptlyMirrorList(cmd *commander.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if context.collectionFactory.RemoteRepoCollection().Len() > 0 {
|
||||
if context.CollectionFactory().RemoteRepoCollection().Len() > 0 {
|
||||
fmt.Printf("List of mirrors:\n")
|
||||
repos := make([]string, context.collectionFactory.RemoteRepoCollection().Len())
|
||||
repos := make([]string, context.CollectionFactory().RemoteRepoCollection().Len())
|
||||
i := 0
|
||||
context.collectionFactory.RemoteRepoCollection().ForEach(func(repo *debian.RemoteRepo) error {
|
||||
context.CollectionFactory().RemoteRepoCollection().ForEach(func(repo *debian.RemoteRepo) error {
|
||||
repos[i] = repo.String()
|
||||
i++
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user