Github user Leemoonsoo commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/377#issuecomment-153022069
How about API like
```
z.addRepo("RepoName").url("RepoURL").credential("username", "password")
```
Instead of
```
z.addRepo("RepoName").url("RepoURL")
z.addCredential("RepoName","username","password")
```
?
I think method chaining is more consistent design here while
[Repository](https://github.com/apache/incubator-zeppelin/blob/master/spark/src/main/java/org/apache/zeppelin/spark/dep/Repository.java)
already has url(), snapshot() with method chaining.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---