platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
221 stars 120 forks source link

Add team management commands #1387

Closed pjcdawkins closed 8 months ago

pjcdawkins commented 9 months ago

Test for Upsun with:

# Download Upsun config
curl -s https://raw.githubusercontent.com/platformsh/cli/main/internal/config/upsun-cli.yaml > /tmp/upsun-cli.yaml

# Download the build for this PR
curl -s https://pr-1387-x5xx7sy-mpaw4nkgdwaea.eu-2.platformsh.site/platform.phar > /tmp/platform-pr-1387.phar

# Create an alias
alias upsun='CLI_CONFIG_FILE=/tmp/upsun-cli.yaml php /tmp/platform-pr-1387.phar'

# Run teams commands
upsun teams
bojanz commented 8 months ago

I have tested all of the commands, and they work fine.

Nitpick:

To add project(s) to the team, run: upsun team:project:add
To delete a project from the team, run: upsun team:project:delete [id]

Should we have [id] shown for team:project:add as well, since it works the same as :delete?

Interesting behavior that probably isn't related to a specific command:

pjcdawkins commented 8 months ago

Manually merged in 5df55fe759f50407c6ccaa060efeec4b4101c1cd