jamesob / desk

A lightweight workspace manager for the shell
MIT License
2.54k stars 111 forks source link

Add 'run' command, allow shell args to be forwarded in 'go' #47

Closed jamesob closed 8 years ago

jamesob commented 8 years ago

After a few more weeks of use, I've noticed that often I'll invoke a desk just to run a single command, and pop back out immediately afterwards. This PR adds a command called run that facilitates that usecase; it's basically an analogue to $SHELL -c.

Example usage:

 $ desk

No desk activated.

[...]

 $ desk run puppetry hiera

[puppet] Executing task 'update_hiera'
[puppet] sudo: update-hiera
[puppet] out: Already up-to-date.
[puppet] out: 

Done.
Disconnecting from puppet... done.

 $ desk

No desk activated.

Also in this PR is a change that allows arguments to be forwarded on to the shell process in .|go.