adobe / aio-cli-plugin-console

Adobe's Developer Console plugin for the Adobe I/O CLI
https://www.adobe.io
Apache License 2.0
6 stars 11 forks source link

[Enhancement] Search for Console Org and Projects #137

Closed sarahxxu closed 4 years ago

sarahxxu commented 4 years ago

Expected Behaviour

For Orgs

$ aio console org search <search-string>

Org ID Code                                                         Org Name                              
11111  xxxxxxxxxxxxxxxx@AdobeOrg                 OrgA                              
11112  xxxxxxxxxxxxxx7F000101@AdobeOrg    OrgB                       
11113  xxxxxxxxxxxxxx7F000101@AdobeOrg    OrgC                          
11114  xxxxxxxxxxxxx0A4C98A4@AdobeOrg    OrgD            
11115  xxxxxxxxxxxxxx495C55@AdobeOrg       OrgE                 

Searching Organizations... done

For Project

$ aio console project search <search-string>

ID                  Name                 Title                                    
xxxxxxxxxx   xxxxxxxxxx        xxxxxxxxx

Searching Projects... done

Actual Behaviour

A long list for all org/projects within current Console. For partners and customers with 30+ orgs and hundreds of projects, this would be hard to use.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

meryllblanchet commented 4 years ago

This should rather be done with a combination of the standard Unix commands. There's no value in adding a new CLI command for that.

Example:

aio console org list | grep xxxxxxxxxxxxxxxx@AdobeOrg

meryllblanchet commented 4 years ago

Closing as discussed with @sarahxxu .