feedhenry / rhm

4 stars 6 forks source link

Allow rhm to be a lib as well as a cli #19

Open maleck13 opened 8 years ago

maleck13 commented 8 years ago

As we are focusing on the developer side of things, it would be nice if this could be used programatically as well as a cli. This requires some thought as the config currently is stored on disk. Essentially we would need a user data that is in memory and expose a method that doesn't take a cli.Context and instead takes a proper set of arguments. @wtrocki @luigizuccarelli @mmurphy

wtrocki commented 8 years ago

It would be nice to do separate implementation that would just get config as parameter then cli can pass that from file etc. To do this login should return user data structure and cli and other clients would be responsible for storing this somewhere or even logging every time call it's needed. Going to create PR with example.