add "mox config account list", printing all accounts and whether they are disabled

based on question from wisse on slack
This commit is contained in:
Mechiel Lukkien
2025-04-16 19:59:20 +02:00
parent 31c22618f5
commit 1b2b152cb5
4 changed files with 58 additions and 1 deletions

View File

@ -305,6 +305,12 @@ func TestCtl(t *testing.T) {
testctl(func(xctl *ctl) {
ctlcmdConfigAccountDisabled(xctl, "mjl2", "testing")
})
// "accountlist"
testctl(func(xctl *ctl) {
ctlcmdConfigAccountList(xctl)
})
testctl(func(xctl *ctl) {
ctlcmdConfigAccountDisabled(xctl, "mjl2", "")
})