Multiple URIs now printed on one line for easier copy-pasting

This commit is contained in:
grym 2021-08-17 16:29:23 -04:00
parent 04c19f2e53
commit c7b7a1bc3e
1 changed files with 3 additions and 3 deletions

View File

@ -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="")