GODT-1794: CLI wording

This commit is contained in:
Jakub
2022-08-26 16:49:58 +02:00
parent 5b941013de
commit 1ec05e8a6c
2 changed files with 6 additions and 6 deletions

View File

@ -143,14 +143,14 @@ func New( //nolint:funlen
Help: "choose not to list the All Mail folder in your local client", Help: "choose not to list the All Mail folder in your local client",
} }
allMailCmd.AddCmd(&ishell.Cmd{ allMailCmd.AddCmd(&ishell.Cmd{
Name: "disable", Name: "hide",
Help: "All Mail folder will not be listed in your local client", Help: "All Mail folder will not be listed in your local client",
Func: fe.disableAllMail, Func: fe.hideAllMail,
}) })
allMailCmd.AddCmd(&ishell.Cmd{ allMailCmd.AddCmd(&ishell.Cmd{
Name: "enable", Name: "show",
Help: "All Mail folder will be listed in your local client", Help: "All Mail folder will be listed in your local client",
Func: fe.enableAllMail, Func: fe.showAllMail,
}) })
fe.AddCmd(allMailCmd) fe.AddCmd(allMailCmd)

View File

@ -152,7 +152,7 @@ func (f *frontendCLI) disallowProxy(c *ishell.Context) {
} }
} }
func (f *frontendCLI) disableAllMail(c *ishell.Context) { func (f *frontendCLI) hideAllMail(c *ishell.Context) {
if !f.bridge.IsAllMailVisible() { if !f.bridge.IsAllMailVisible() {
f.Println("All Mail folder is not listed in your local client.") f.Println("All Mail folder is not listed in your local client.")
return return
@ -165,7 +165,7 @@ func (f *frontendCLI) disableAllMail(c *ishell.Context) {
} }
} }
func (f *frontendCLI) enableAllMail(c *ishell.Context) { func (f *frontendCLI) showAllMail(c *ishell.Context) {
if f.bridge.IsAllMailVisible() { if f.bridge.IsAllMailVisible() {
f.Println("All Mail folder is listed in your local client.") f.Println("All Mail folder is listed in your local client.")
return return