stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milindu Sanoj Kumarage <agentmili...@gmail.com>
Subject Re: [GSoC 2015] Python CLI for Stratos : Weekly Update
Date Sun, 10 May 2015 15:56:22 GMT
Hi,

Thanks Chamila, I will update the setup.py with these info.
I too taught of using 'stratos-cli' first, but doubted you wouldn't like
that because the user has to type this when working with Single Command
Line Mode. But if you think that would not be a problem, then let's change
that as 'stratos-cli' :)

Thanks Imesh, I will update the name as StratosApiClient then.

I have few more questions,

1. We have to do logging, right? Log important events always ( to a file? )
or log only in debug mode ( directly to the cmd? )?
2. I saw Java CLI  creating a  dir named '.stratos', for what that dir is
used to?



On Sat, May 9, 2015 at 10:16 PM, Imesh Gunaratne <imesh@apache.org> wrote:

> Hi Milindu,
>
> On Sat, May 9, 2015 at 9:37 PM, Milindu Sanoj Kumarage <
> agentmilindu@gmail.com> wrote:
>>
>>
>> 1. Main.py - This contains the entry point, it does the initializing
>> parts, creates a CLI instance and runs the loop and other stuffs.
>>
> +1
>
>>
>> 2. CLI.py - This is the actual CLI that extends Cmd2. This contains the
>> command to def mappings, argument and flag handling, printing outputs, etc.
>>
> +1
>
>>
>> 3. Stratos.py - This contains the actual business logic, that is, which
>> REST end point to call, and do what with the response, what to show, what
>> not, etc. At the end, this would be like a Python API for Stratos in a way.
>>
>> IMO Stratos is too generic for a class name. Shall we rename this to
> something like StratosApiClient?
>
> Thanks
>
> --
> Imesh Gunaratne
>
> Senior Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>

Mime
View raw message