unix utilities for MacOS
NSString *command = @"/usr/bin/find";
NSArray *args = @[@"/", @"-name", @".DS_Store", @"-print"];
LjsUnixOperation *uop = [[LjsUnixOperation alloc]
initWithLaunchPath:command
launchArgs:args
commonName:TpUnixOperationTestsCommandLongRunningFind
callbackDelegate:self];
[self.opqueue addOperation:uop];
NSString *command = @"/usr/bin/defaults";
NSArray *args = @[@"read", @"com.apple.NetworkBrowser", @"BrowseAllInterfaces"];
LjsUnixOperation *uop = [[LjsUnixOperation alloc]
initWithLaunchPath:command
launchArgs:args
commonName:TpUnixOperationTestsDoAirDropRead
callbackDelegate:self];
[self.opqueue addOperation:uop];
sometimes you just need to do some unix operations
i will try my best to follow http://semver.org/ when naming the versions.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request