GnaspGames / Smelt

A CLI tool for Minecraft map makers
http://smelt.gnasp.com
MIT License
19 stars 4 forks source link

Copy compiled command to clipboard #19

Closed GnaspGames closed 8 years ago

GnaspGames commented 8 years ago

Add an option (--clipboard) that will allow the final compiled command to be automatically placed in the users clipboard to place into the command-block in the world.

This would only work when there is ONE final compiled command. If there are multiple outputs (because multiple files are processed, or because a !command has a setup command to run) then it wouldn't be possible to place them all into the clipboard and be usable. Possibly a future update could pause with each outputted command and allow the user to do one at a time?

GnaspGames commented 8 years ago

Decided to use the --copy switch as that seems more appropriate. I could allow a --paste switch in the future so that the input would be read from a clipboard and not a file.

@M4GNV5 Thanks for your input on this, but I've used the 'copy-paste' module instead. That apparently handles cross platform clipboard systems. Although I've only tested on Windows so far.

p.s. Been away on holiday so that's why there's not been much activity on this.

GnaspGames commented 8 years ago

Closed in merge cfbd8eb9265a7fe851a66a6b71317a5feacf41ea