magicalraccoon / tootstream

A command line interface for interacting with Mastodon instances
MIT License
259 stars 32 forks source link

Add a 'puburl' command to print/open the public url of a toot (fixes #184) #189

Closed StarlitGhost closed 6 years ago

StarlitGhost commented 6 years ago

A PR implementing #184.

puburl <id> prints the public url of the toot. puburl <id> open opens the toot in the user's web browser.

craigmaloney commented 6 years ago

Thanks for this!

I managed to get it to complain if I accidentally added a space after the ID. Would you add a .strip() method to this so it'll still work?

Thanks again!

StarlitGhost commented 6 years ago

Done, although not with .strip() as that wouldn't work with the open form of the command.

I noticed the current links command has the same issue, should I make another PR to fix that in the same way? All the other commands should be immune from a quick look.

craigmaloney commented 6 years ago

If you would that would be awesome. Thanks!

This looks good. Thanks!