From 2453375721832304b512380e6610de2c3d765bd5 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 28 Feb 2024 23:55:20 +0100 Subject: commands: rename confusing constants There is an overlap between ACCOUNT and MESSAGE. Rename ACCOUNT to MESSAGE_LIST and use MESSAGE_LIST|MESSAGE_VIEWER instead of MESSAGE. Signed-off-by: Robin Jarry Reviewed-by: Tim Culverhouse --- commands/account/align.go | 2 +- commands/account/cf.go | 2 +- commands/account/check-mail.go | 2 +- commands/account/clear.go | 2 +- commands/account/compose.go | 2 +- commands/account/connection.go | 2 +- commands/account/expand-folder.go | 2 +- commands/account/export-mbox.go | 2 +- commands/account/import-mbox.go | 2 +- commands/account/mkdir.go | 2 +- commands/account/next-folder.go | 2 +- commands/account/next-result.go | 2 +- commands/account/next.go | 2 +- commands/account/query.go | 2 +- commands/account/recover.go | 2 +- commands/account/rmdir.go | 2 +- commands/account/search.go | 2 +- commands/account/select.go | 2 +- commands/account/sort.go | 2 +- commands/account/split.go | 2 +- commands/account/view.go | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) (limited to 'commands/account') diff --git a/commands/account/align.go b/commands/account/align.go index 7f835b71..e4c1379a 100644 --- a/commands/account/align.go +++ b/commands/account/align.go @@ -37,7 +37,7 @@ func (a *Align) CompletePos(arg string) []string { } func (Align) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (Align) Aliases() []string { diff --git a/commands/account/cf.go b/commands/account/cf.go index 0f818006..e96ab2d6 100644 --- a/commands/account/cf.go +++ b/commands/account/cf.go @@ -27,7 +27,7 @@ func init() { } func (ChangeFolder) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (ChangeFolder) Aliases() []string { diff --git a/commands/account/check-mail.go b/commands/account/check-mail.go index bc41a935..d82fa042 100644 --- a/commands/account/check-mail.go +++ b/commands/account/check-mail.go @@ -14,7 +14,7 @@ func init() { } func (CheckMail) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (CheckMail) Aliases() []string { diff --git a/commands/account/clear.go b/commands/account/clear.go index 46335431..1c13ddf5 100644 --- a/commands/account/clear.go +++ b/commands/account/clear.go @@ -17,7 +17,7 @@ func init() { } func (Clear) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (Clear) Aliases() []string { diff --git a/commands/account/compose.go b/commands/account/compose.go index e45f77c3..c9e36379 100644 --- a/commands/account/compose.go +++ b/commands/account/compose.go @@ -28,7 +28,7 @@ func init() { } func (Compose) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (c *Compose) ParseHeader(arg string) error { diff --git a/commands/account/connection.go b/commands/account/connection.go index 75171cf4..126c79f1 100644 --- a/commands/account/connection.go +++ b/commands/account/connection.go @@ -16,7 +16,7 @@ func init() { } func (Connection) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (Connection) Aliases() []string { diff --git a/commands/account/expand-folder.go b/commands/account/expand-folder.go index 5bb686e0..8eafa0ed 100644 --- a/commands/account/expand-folder.go +++ b/commands/account/expand-folder.go @@ -14,7 +14,7 @@ func init() { } func (ExpandCollapseFolder) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (ExpandCollapseFolder) Aliases() []string { diff --git a/commands/account/export-mbox.go b/commands/account/export-mbox.go index 021eecc6..6422eae0 100644 --- a/commands/account/export-mbox.go +++ b/commands/account/export-mbox.go @@ -26,7 +26,7 @@ func init() { } func (ExportMbox) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (ExportMbox) Aliases() []string { diff --git a/commands/account/import-mbox.go b/commands/account/import-mbox.go index 1b05f16d..cdf99c96 100644 --- a/commands/account/import-mbox.go +++ b/commands/account/import-mbox.go @@ -27,7 +27,7 @@ func init() { } func (ImportMbox) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (ImportMbox) Aliases() []string { diff --git a/commands/account/mkdir.go b/commands/account/mkdir.go index 9776e8f7..dae407cd 100644 --- a/commands/account/mkdir.go +++ b/commands/account/mkdir.go @@ -19,7 +19,7 @@ func init() { } func (MakeDir) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (MakeDir) Aliases() []string { diff --git a/commands/account/next-folder.go b/commands/account/next-folder.go index c16a7717..369249ce 100644 --- a/commands/account/next-folder.go +++ b/commands/account/next-folder.go @@ -16,7 +16,7 @@ func init() { } func (NextPrevFolder) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (NextPrevFolder) Aliases() []string { diff --git a/commands/account/next-result.go b/commands/account/next-result.go index f36ba941..e49884cf 100644 --- a/commands/account/next-result.go +++ b/commands/account/next-result.go @@ -15,7 +15,7 @@ func init() { } func (NextPrevResult) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (NextPrevResult) Aliases() []string { diff --git a/commands/account/next.go b/commands/account/next.go index 262e308d..4245dd60 100644 --- a/commands/account/next.go +++ b/commands/account/next.go @@ -24,7 +24,7 @@ func init() { } func (NextPrevMsg) Context() commands.CommandContext { - return commands.ACCOUNT | commands.MESSAGE_VIEWER + return commands.MESSAGE_LIST | commands.MESSAGE_VIEWER } func (np *NextPrevMsg) ParseAmount(arg string) error { diff --git a/commands/account/query.go b/commands/account/query.go index f116d405..fccdc756 100644 --- a/commands/account/query.go +++ b/commands/account/query.go @@ -22,7 +22,7 @@ func init() { } func (Query) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (Query) Aliases() []string { diff --git a/commands/account/recover.go b/commands/account/recover.go index f38d9920..fb08f646 100644 --- a/commands/account/recover.go +++ b/commands/account/recover.go @@ -24,7 +24,7 @@ func init() { } func (Recover) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (Recover) Aliases() []string { diff --git a/commands/account/rmdir.go b/commands/account/rmdir.go index 48ea3581..22e78a69 100644 --- a/commands/account/rmdir.go +++ b/commands/account/rmdir.go @@ -19,7 +19,7 @@ func init() { } func (RemoveDir) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (RemoveDir) Aliases() []string { diff --git a/commands/account/search.go b/commands/account/search.go index d4e04803..e64e8154 100644 --- a/commands/account/search.go +++ b/commands/account/search.go @@ -38,7 +38,7 @@ func init() { } func (SearchFilter) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (SearchFilter) Aliases() []string { diff --git a/commands/account/select.go b/commands/account/select.go index cbaaf6e9..f990a1a1 100644 --- a/commands/account/select.go +++ b/commands/account/select.go @@ -16,7 +16,7 @@ func init() { } func (SelectMessage) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (SelectMessage) Aliases() []string { diff --git a/commands/account/sort.go b/commands/account/sort.go index 0e80aec8..b41d4920 100644 --- a/commands/account/sort.go +++ b/commands/account/sort.go @@ -22,7 +22,7 @@ func init() { } func (Sort) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (Sort) Aliases() []string { diff --git a/commands/account/split.go b/commands/account/split.go index 5f09f21b..f866af78 100644 --- a/commands/account/split.go +++ b/commands/account/split.go @@ -19,7 +19,7 @@ func init() { } func (Split) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (s *Split) ParseSize(arg string) error { diff --git a/commands/account/view.go b/commands/account/view.go index 4177b906..9fa531b7 100644 --- a/commands/account/view.go +++ b/commands/account/view.go @@ -21,7 +21,7 @@ func init() { } func (ViewMessage) Context() commands.CommandContext { - return commands.ACCOUNT + return commands.MESSAGE_LIST } func (ViewMessage) Aliases() []string { -- cgit