Mattermost-server: Add support of the multi-word text arguments without quotes

Created on 3 Jun 2020  路  8Comments  路  Source: mattermost/mattermost-server

To input multi-word text argument in the slash command autocomplete we use quotes. Here is the code how we parse it.
But if model.AutocompleteArgTypeText is the last argument of a command tree there is no need to have quotes for a multi-word input.
Change the code to support multi-word input without quotes for the last argument of the command.

Example: /agenda queue "message with quotes" vs /agenda queue message without quotes

Changes should be done only on a server.


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-25545

AreToolkit Medium Good First Issue Help Wanted PR Exists TecGo

Most helpful comment

Yea, I am still working on this.

All 8 comments

Hi, I would like to work on this.

@mukulrawat1986 - are you still working on this or can we reassign? cc @iomodo

Yea, I am still working on this.

I'd like to take this.

@reflog Please reassign this to @Shubhamchinda

This issue appears stale and I鈥檓 adding the Up For Grabs label. If work is ongoing, please remove the label. If there is an existing PR, please also link it to the issue. Thanks!

Still learning Go, but I'd like to take a swing at this.

Read all the documentation for contributions, but if I missed anything, let me know.

Was this page helpful?
0 / 5 - 0 ratings