News for hackers. Stuff that matters.
Re:Mac CLI – OS X command line tools for developers by JustSomeNobody on Saturday June 25, 2016 @07:18PM (#11978515)
What's so wrong with the regular command line commands for most of this?
Re:Mac CLI – OS X command line tools for developers by sepbot on Sunday June 26, 2016 @04:52AM (#11979938)
I agree. It did inspire me to write this however, which I desperately needed for a long time:

alias eject="hdiutil info | gawk '/^\/dev\/disk([0-9]*)\>/ { system(\"hdiutil detach \" \$1) }'"

Re:Mac CLI – OS X command line tools for developers by nestlequ1k on Saturday June 25, 2016 @07:26PM (#11978550)
Most people don't memorize the commands for all of these, and googling for them everytime gets old.
Re:Mac CLI – OS X command line tools for developers by ksherlock on Saturday June 25, 2016 @10:27PM (#11979139)
So instead of not remembering "tar xfz", you can not remember "mac tar:extract"? Either way, I guess you'll just end up asking google and google will tell you to use tar.
Re:Mac CLI – OS X command line tools for developers by JustSomeNobody on Saturday June 25, 2016 @08:36PM (#11978825)
man <command>.

And if people are in the command line often enough, they do memorize the actual commands. They really, really do.

Re:Mac CLI – OS X command line tools for developers by wtallis on Saturday June 25, 2016 @08:52PM (#11978874)
man pages don't really solve the discoverability problem.
Re:Mac CLI – OS X command line tools for developers by jwilcoxson on Saturday June 25, 2016 @09:01PM (#11978901)
Isn't this just layering the discoverability issue? It's another set of commands to learn, when you should be learning the real commands.
Re:Mac CLI – OS X command line tools for developers by mymosh on Saturday June 25, 2016 @10:41PM (#11979174)
Isn't that what apropos is for?
Re:Mac CLI – OS X command line tools for developers by compassios on Saturday June 25, 2016 @08:22PM (#11978772)
Exactly. In addition to that, this is a chance to collaborate to build more and better commands. It's the first step to what could be a powerful and very useful developer tool.
Re:Mac CLI – OS X command line tools for developers by JustSomeNobody on Saturday June 25, 2016 @08:35PM (#11978823)
There's already been collaboration among the various *nix operating systems.
Re:Mac CLI – OS X command line tools for developers by pje on Sunday June 26, 2016 @12:07AM (#11979337)
Well, would you rather remember: `sudo shutdown -r now` or `mac shutdown`?

Would you rather remember: `pmset sleepnow` or `mac restart`?

Re:Mac CLI – OS X command line tools for developers by dottedmag on Sunday June 26, 2016 @02:44AM (#11979675)
Is there complementary `linux shutdown` and `freebsd shutdown` and `solaris shutdown`? If no, then this utility only increases cognitive load.
Re:Mac CLI – OS X command line tools for developers by fakemeatsubs on Sunday June 26, 2016 @04:28AM (#11979895)
then this utility only increases cognitive load.

how in the world does it 'increase cognitive load'? Seems like its just your opinion. I know how to shut down a generic linux box. But mac shutdoown or mac reboot is still easier to type and remember.

Re:Mac CLI – OS X command line tools for developers by Obi_Juan_Kenobi on Sunday June 26, 2016 @04:12PM (#11982462)
FWIW, I was installing Ubuntu and had an issue with Unity, so had to use tty to update and hadn't ever shut down from the command line before. It just took me one try of 'shutdown' and a quick look at the man page to figure out what options were needed.

I see this as either being used frequently enough to be easily memorized, or infrequently enough that a quick check of the man page is fine. The real benefit is that it's a very general solution that works on basically any system, and for a wide variety of commands. As another commentor pointed out, the apropos command makes this strategy even more powerful.

Re:Mac CLI – OS X command line tools for developers by spike021 on Sunday June 26, 2016 @04:25AM (#11979889)
Why not just do `man shutdown` to figure out the option you should use, and then either set it up with an alias or just learn it permanently with repetition?
Re:Mac CLI – OS X command line tools for developers by compassios on Sunday June 26, 2016 @01:23AM (#11979506)
Exactly, that is the point. Also, some commands require several parameters and it's much better having the script asking for those parameters in an interactive way.

For example: mac ssh:download-folder

Re:Mac CLI – OS X command line tools for developers by JustSomeNobody on Sunday June 26, 2016 @01:07PM (#11981573)
sudo shutdown -r now.

1) It's already muscle memory.

2) It's not hard.

3) Other *nix OSs use is too.