+1 Will use the same command for this.

On Sat, Mar 21, 2015 at 11:59 AM, Dinithi De Silva <[email protected]>
wrote:

> Hi Imesh/Chamila,
>
> Thank you for the explanation. So shall we use the same command
> (list-tenants) to do this work?
>
> Eg: For the command "list-tenants he*" we need to display all the domains
> which contains "he" in its domain.
>
> Thanks.
>
> On Sat, Mar 21, 2015 at 9:27 AM, Imesh Gunaratne <[email protected]> wrote:
>
>> Hi Dinithi,
>>
>> I see couple of problems here:
>>
>> On Fri, Mar 20, 2015 at 5:33 PM, Dinithi De Silva <[email protected]>
>> wrote:
>>>
>>> *Result with search query "he"*
>>>
>>> stratos> list-tenants-by-partial-domain —partialDomain *he*
>>> Tenants found:
>>> +———————+—————+————+————————-+———————————————+
>>> | tenantDomain | tenantID | active | email | createdDate |
>>> +———————+—————+————+————————-+———————————————+
>>> | apache.org | 2 | true | [email protected] | Fri Mar 20 16:48:47 IST
>>> 2015 |
>>> +———————+—————+————+————————-+———————————————+
>>>
>>> First of all I'm -1 to list-tenants-by-partial-domain command. An end
>> user might think there is an entity called "Partial Domain". As I
>> understood this is a tenant query which uses domain name and we could use
>> wildcards in that. If so we should have used the same command
>> "list-tenants" to do this.
>>
>> More importantly this pattern should be consistent across all CLI
>> commands. IMO we have this type of a command for querying cartridges.
>>
>>> *Result with search query "he?com"*
>>>
>>> In the last query (with the "?" ), although we don't have any domains
>>> with "com" it displays a result for that. I got this problem only with the
>>> "?" character. Is there a restriction that we cannot use any special
>>> characters in the search query?
>>>
>> I do not think "?" is the proper wildcard character. As Chamila has
>> mentioned better to use a more generic, widely used one like "*".
>>
>> Thanks
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:[email protected] | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to