Mattermost-server: CLI channel move syntax "wrong"

Created on 15 Jan 2019  路  4Comments  路  Source: mattermost/mattermost-server

Hi all

Summary

The CLI channel move syntax is not common.

Issue

At the moment the channel move is using the syntax:
channel move [destination] [source] --username myusername

but every program that moves something has the syntax:
mv [source] [destination]

By switching the syntax it makes the cli more consistent with other move tools and also within the cli. For example channel rename uses also the schema [source] [destination]

#

I tried to simple flip the arguments in the channel.go but that's not working at all but its clearly limited due to my inexisting program skills

Best regards

JtheBAB

Bug ReporOpen

Most helpful comment

Hi, can I pick this one ?

All 4 comments

Hi @JtheBAB,

I opened an improvement ticket for this here: https://mattermost.atlassian.net/browse/MM-13787.

Hi, can I pick this one ?

Hi @adzimzf, yes you can work on a fix for this, thank you!

This command is being migrated to and resolved in the new mmctl tool at https://github.com/mattermost/mmctl/pull/149.

Closing this issue as we won't resolve it in the current Mattermost CLI (instead, we're migrating the new mmctl command into the Mattermost server over time)

Was this page helpful?
0 / 5 - 0 ratings