This ticket includes the creation of a "team rename" subcommand in mmctl based on the Mattermost CLI command that can be found in cmd/mattermost/commands/team.go.
To achieve this, the command can use the Update a Team endpoint, and it should mimic the structure, arguments and behavior of the Mattermost CLI command.
With mmctl connected to a Mattermost server:
1. Run the "team rename" command, sending only the --name flag to modify a team's name
2. Run the "team rename" command, sending only the --display_name flag to modify a team's display name
3. Run the "team rename" command, sending both the --display_name and --name flags to modify both team's properties
4. Play around with the "team rename" command, sending no flags, bad flags, no old team name, etc
After 1, 2 and 3: the team should be updated according to the flags that have been set on each case
After 4: the command should not run with invalid flags or arguments