diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-21 18:18:51 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-21 18:53:37 +0200 |
commit | 82eaceffc1d750832a2a66f206749d2dca968cce (patch) | |
tree | 1431c8f1fd9baa689b850da7f104d12c20b1d8a7 /termui | |
parent | 6a575fbf483e2b28821908f67e87637d9e5cea75 (diff) | |
download | git-bug-82eaceffc1d750832a2a66f206749d2dca968cce.tar.gz |
repo: split the Repo interface to avoid abstraction leak in RepoCache
Diffstat (limited to 'termui')
-rw-r--r-- | termui/termui.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/termui/termui.go b/termui/termui.go index 403fcc97..80c23844 100644 --- a/termui/termui.go +++ b/termui/termui.go @@ -170,7 +170,7 @@ func newBugWithEditor(repo *cache.RepoCache) error { ui.g.Close() ui.g = nil - title, message, err := input.BugCreateEditorInput(ui.cache.Repository(), "", "") + title, message, err := input.BugCreateEditorInput(ui.cache, "", "") if err != nil && err != input.ErrEmptyTitle { return err @@ -210,7 +210,7 @@ func addCommentWithEditor(bug *cache.BugCache) error { ui.g.Close() ui.g = nil - message, err := input.BugCommentEditorInput(ui.cache.Repository()) + message, err := input.BugCommentEditorInput(ui.cache) if err != nil && err != input.ErrEmptyMessage { return err @@ -243,7 +243,7 @@ func setTitleWithEditor(bug *cache.BugCache) error { ui.g.Close() ui.g = nil - title, err := input.BugTitleEditorInput(ui.cache.Repository(), bug.Snapshot().Title) + title, err := input.BugTitleEditorInput(ui.cache, bug.Snapshot().Title) if err != nil && err != input.ErrEmptyTitle { return err @@ -276,7 +276,7 @@ func editQueryWithEditor(bt *bugTable) error { ui.g.Close() ui.g = nil - queryStr, err := input.QueryEditorInput(bt.repo.Repository(), bt.queryStr) + queryStr, err := input.QueryEditorInput(bt.repo, bt.queryStr) if err != nil { return err |