From 598e4a5803578ab3e291f232d6aad31b4efd8ea4 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Mon, 9 Oct 2023 13:52:20 +0200 Subject: widgets: rename package to app This is the central point of all aerc. Having it named widgets is confusing. Rename it to app. It will make a cleaner transition when making the app.Aerc object available globally in the next commit. Signed-off-by: Robin Jarry Acked-by: Moritz Poldrack --- app/tabhost.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/tabhost.go (limited to 'app/tabhost.go') diff --git a/app/tabhost.go b/app/tabhost.go new file mode 100644 index 00000000..9a206084 --- /dev/null +++ b/app/tabhost.go @@ -0,0 +1,15 @@ +package app + +import ( + "time" +) + +type TabHost interface { + BeginExCommand(cmd string) + UpdateStatus() + SetError(err string) + PushStatus(text string, expiry time.Duration) *StatusMessage + PushError(text string) *StatusMessage + PushSuccess(text string) *StatusMessage + Beep() +} -- cgit