upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

feat(teams): implement teams cmd #566

Closed haarchri closed 2 weeks ago

haarchri commented 2 weeks ago

Description of your changes

implement teams cmd in up-cli

Fixes #

I have:

How has this code been tested

tested the implementation from up-sdk-go with an implementation in up-cli

added in go.mod

cat go.mod

[...]
replace github.com/upbound/up-sdk-go => ../up-sdk-go
up team create test-implementation -a upboundcare
upboundcare/test-implementation created

image

up team get test-implementation -a upboundcare   
NAME                  ID                                     CREATED
test-implementation   f68ca5fd-4a83-40bb-a620-3db3da3c9109   17s
up team list -a upboundcare
NAME                                       ID                                     CREATED
test123                                    5e8e8dab-3598-4003-a5ba-34a12859d60f   23m
test-implementation                        f68ca5fd-4a83-40bb-a620-3db3da3c9109   31s
up team delete test-implementation  -a upboundcare
Are you sure you want to delete this team? [y/n]: y
Deleting team upboundcare/test-implementation. This cannot be undone.
upboundcare/test-implementation deleted
up team list -a upboundcare                       
NAME                                       ID                                     CREATED
test123                                    5e8e8dab-3598-4003-a5ba-34a12859d60f   23m
haarchri commented 2 weeks ago

@RedbackThomson can you review again ?