forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MM-61132] Fix example for mmctl permissions role show command (matte…
- Loading branch information
Showing
5 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ var RemoveChannelUsersCmd = &cobra.Command{ | |
Long: "Remove some users from channel", | ||
Example: ` channel remove myteam:mychannel [email protected] username | ||
channel remove myteam:mychannel --all-users`, | ||
Deprecated: "please use \"users remove\" instead", | ||
Deprecated: "please use \"mmctl channel users remove\" instead", | ||
RunE: withClient(channelUsersRemoveCmdF), | ||
} | ||
|
||
|
@@ -60,7 +60,7 @@ var AddChannelUsersCmd = &cobra.Command{ | |
Short: "Add users to channel", | ||
Long: "Add some users to channel", | ||
Example: " channel add myteam:mychannel [email protected] username", | ||
Deprecated: "please use \"users add\" instead", | ||
Deprecated: "please use \"mmctl channel users add\" instead", | ||
RunE: withClient(channelUsersAddCmdF), | ||
} | ||
|
||
|
@@ -108,13 +108,13 @@ Channel can be specified by [team]:[channel]. ie. myteam:mychannel or by channel | |
} | ||
|
||
var RestoreChannelsCmd = &cobra.Command{ | ||
Use: "restore [channels]", | ||
Deprecated: "please use \"unarchive\" instead", | ||
Short: "Restore some channels", | ||
Use: "restore [channels]", | ||
Short: "Restore some channels", | ||
Long: `Restore a previously deleted channel | ||
Channels can be specified by [team]:[channel]. ie. myteam:mychannel or by channel ID.`, | ||
Example: " channel restore myteam:mychannel", | ||
RunE: withClient(unarchiveChannelsCmdF), | ||
Example: " channel restore myteam:mychannel", | ||
Deprecated: "please use \"mmctl channel unarchive\" instead", | ||
RunE: withClient(unarchiveChannelsCmdF), | ||
} | ||
|
||
var UnarchiveChannelCmd = &cobra.Command{ | ||
|
@@ -133,7 +133,7 @@ var MakeChannelPrivateCmd = &cobra.Command{ | |
Long: `Set the type of a channel from Public to Private. | ||
Channel can be specified by [team]:[channel]. ie. myteam:mychannel or by channel ID.`, | ||
Example: " channel make-private myteam:mychannel", | ||
Deprecated: "please use \"channel modify --private\" instead", | ||
Deprecated: "please use \"mmctl channel modify --private\" instead", | ||
RunE: withClient(makeChannelPrivateCmdF), | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ Examples | |
|
||
:: | ||
|
||
permissions show system_user | ||
permissions role show system_user | ||
|
||
Options | ||
~~~~~~~ | ||
|