Major refactoring: access to context happens in methods. #13

This commit is contained in:
Andrey Smirnov committed 2014-04-05 16:10:51 +04:00
1 parent 400d0da7d4
commit 2c3553ef0b
31 files changed
+333 -265

No files matched your search

+2 -2
View File
@@ -17,12 +17,12 @@ func aptlyMirrorShow(cmd *commander.Command, args []string) error {
name := args[0]
repo, err := context.collectionFactory.RemoteRepoCollection().ByName(name)
repo, err := context.CollectionFactory().RemoteRepoCollection().ByName(name)
if err != nil {
return fmt.Errorf("unable to show: %s", err)
}
err = context.collectionFactory.RemoteRepoCollection().LoadComplete(repo)
err = context.CollectionFactory().RemoteRepoCollection().LoadComplete(repo)
if err != nil {
return fmt.Errorf("unable to show: %s", err)
}