Mattermost-server: Add bool type argument to the slash command autocomplete

Created on 3 Jun 2020  路  1Comment  路  Source: mattermost/mattermost-server

Right now supported argument types for autocomplete are Text, StaticList and DynamicList. Add AutocompleteArgTypeBool as another type.
User should be able to:

  1. Create a command with boolean arguments(use AddBoolArgument, AddNamedBoolArgument method names).
  2. Input positional bool arguments as t, f, true or false
  3. Input named bool arguments as --name. If --name is present we assume argument value is true, if not argument value is false.

User input parsing is done here

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-25530

AreToolkit Hard Good First Issue Help Wanted PR Exists TecGo

Most helpful comment

hi, i am interested to solve this issue

>All comments

hi, i am interested to solve this issue

Was this page helpful?
0 / 5 - 0 ratings