tea icon indicating copy to clipboard operation
tea copied to clipboard

initial imlementation of list repos (#3)

Open root360-AndreasUlm opened this issue 5 years ago • 3 comments

  • implemented runRepos()
  • reimplemented issues.initCommand() as repos.initCommandLoginOnly() as repos command does not always need a valid repository argument.

Output:

$ go build && ./tea repos --login try
Name    Type/Mode       SSH-URL Owner
test-orga/test source  [email protected]:test-orga/test.git    test-user

Signed-off-by: Andreas Ulm [email protected]

root360-AndreasUlm avatar Apr 15 '19 20:04 root360-AndreasUlm

I think noheader flag seems unnecessary. We always needs a header. But for format print on console, \t will not always available.

lunny avatar Apr 16 '19 01:04 lunny

I think noheader flag seems unnecessary. We always needs a header.

@lunny I just added the option to allow further output usage without requiring something like | tail -n -1 | to exclude the header.

But for format print on console, \t will not always available.

I just copied the output format from pulls.runPulls().

root360-AndreasUlm avatar Apr 16 '19 05:04 root360-AndreasUlm

@lunny removed header flag and changed delimiter to pipe.

When I'm done with the unified output ( https://github.com/root360-AndreasUlm/tea/tree/unified_output_function ) the output of this function will be changed again.

root360-AndreasUlm avatar Apr 25 '19 14:04 root360-AndreasUlm