Multiple URIs now printed on one line for easier copy-pasting
This commit is contained in:
parent
04c19f2e53
commit
c7b7a1bc3e
|
@ -22,7 +22,7 @@ def files(
|
|||
res = client.post(base_url, files=payload)
|
||||
if res.status_code == httpx.codes.OK:
|
||||
urls.append(res.text.strip())
|
||||
print("\n".join(urls), end="")
|
||||
print(" ".join(urls), end="")
|
||||
|
||||
|
||||
@app.command()
|
||||
|
@ -35,7 +35,7 @@ def repost(urls: t.List[str], base_url=base_url):
|
|||
res = client.post(base_url, data=data)
|
||||
if res.status_code == httpx.codes.OK:
|
||||
reposted.append(res.text.strip())
|
||||
print("\n".join(reposted), end="")
|
||||
print(" ".join(reposted), end="")
|
||||
|
||||
|
||||
@app.command()
|
||||
|
@ -48,4 +48,4 @@ def shorten(urls: t.List[str], base_url=base_url):
|
|||
res = client.post(base_url, data=data)
|
||||
if res.status_code == httpx.codes.OK:
|
||||
shortened.append(res.text.strip())
|
||||
print("\n".join(shortened), end="")
|
||||
print(" ".join(shortened), end="")
|
||||
|
|
Loading…
Reference in New Issue