Skip to content
/ titan Public
forked from titan-data/titan

Commit

Permalink
Fixes #48
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Smart <[email protected]>
  • Loading branch information
Derek Smart committed Oct 2, 2019
1 parent 9d7d17b commit f5e76b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package io.titandata.titan.providers.local

import io.titandata.client.apis.RemotesApi
import io.titandata.serialization.RemoteUtil

class RemoteList (
private val remotesApi: RemotesApi = RemotesApi()
Expand All @@ -13,9 +14,9 @@ class RemoteList (

fun list(container: String) {
val remotes = remotesApi.listRemotes(container)
System.out.printf("%-20s %s${n}", "REMOTE", "PROVIDER")
System.out.printf("%-20s %-20s %s${n}", "REMOTE", "PROVIDER", "URI")
for (remote in remotes) {
System.out.printf("%-20s %s${n}", remote.name, remote.provider)
System.out.printf("%-20s %-20s %s${n}", remote.name, remote.provider, RemoteUtil().toUri(remote).first)
}
}
}

0 comments on commit f5e76b2

Please sign in to comment.