~emersion/public-inbox

gamja: commands: Add LIST command v1 SUPERSEDED

Cara Salter
Cara Salter: 1
 commands: Add LIST command

 1 files changed, 12 insertions(+), 0 deletions(-)
Cara Salter
Thanks for the feedback!

On 11/16/21 11:35, Simon Ser wrote:
Next
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/26570/mbox | git am -3
Learn more about email & git
View this thread in the archives

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

Cara Salter
Signed-off-by: Cara Salter <cara@devcara.com>
---
This adds the ability to use /list directly, without having to use /quote

 commands.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/commands.js b/commands.js
index 7f13792..fa06fcf 100644
--- a/commands.js
+++ b/commands.js
@@ -411,4 +411,16 @@ export default {
			markServerBufferUnread(app);
		},
	},
	"list": {
		usage: "[filter]",
		description: "Retrieve a list of channels from a network",
		execute: (app, args) => {
			let filter = args[0];
			if filter {
				getActiveClient(app).send({ command: "LIST", params: [filter] });
			} else {
				getActiveClient(app).send({ command: "LIST", params: [] });
			}
		},
	},
};
-- 
2.33.1
Thanks for sending a patch! A few comments below.

On Tuesday, November 16th, 2021 at 16:44, Cara Salter <cara@devcara.com> wrote: