~emersion/public-inbox

gamja: commands: Add LIST command v2 SUPERSEDED

Cara Salter
Cara Salter: 1
 commands: Add LIST command

 1 files changed, 9 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/26573/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gamja v2] commands: Add LIST command Export this patch

Cara Salter
Signed-off-by: Cara Salter <cara@devcara.com>
---
Incorporates changes from the review.
 commands.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/commands.js b/commands.js
index 7f13792..26178e7 100644
--- a/commands.js
+++ b/commands.js
@@ -411,4 +411,13 @@ export default {
			markServerBufferUnread(app);
		},
	},
	"list": {
		usage: "[filter]",
		description: "Retrieve a list of channels from a network",
		execute: (app, args) => {
			let filter = args[0];
			getActiveClient(app).send({ command: "LIST", params: [filter] });
			markServerBufferUnread(app);
		},
	},
};
-- 
2.33.1