aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-09 11:38:44 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-09 11:38:44 +0000
commitbccefa18c72465b2ec41a23eeda5ceb6f4d36204 (patch)
tree73dd3c4867ce64c259dd781e7375f381cb67f2bd /Source/SPStringAdditions.h
parent8fede9d520347dbbb1318dbcbe651d5848b806c3 (diff)
downloadsequelpro-bccefa18c72465b2ec41a23eeda5ceb6f4d36204.tar.gz
sequelpro-bccefa18c72465b2ec41a23eeda5ceb6f4d36204.tar.bz2
sequelpro-bccefa18c72465b2ec41a23eeda5ceb6f4d36204.zip
• added to SPStringAddition the method runBashCommandWithEnvironment:atCurrentDirectoryPath:error which will run self as bash command and will return its result
- if an error occurred it will return a NSError if desired - added the chance to pass shell environment variables and start directory for future usage in user-definable plugins written as scripts
Diffstat (limited to 'Source/SPStringAdditions.h')
-rw-r--r--Source/SPStringAdditions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPStringAdditions.h b/Source/SPStringAdditions.h
index a0b39504..15a3d9a9 100644
--- a/Source/SPStringAdditions.h
+++ b/Source/SPStringAdditions.h
@@ -75,4 +75,6 @@ static inline id NSMutableAttributedStringAttributeAtIndex (NSMutableAttributedS
- (CGFloat)levenshteinDistanceWithWord:(NSString *)stringB;
+- (NSString *)runBashCommandWithEnvironment:(NSDictionary*)shellEnvironment atCurrentDirectoryPath:(NSString*)path error:(NSError**)theError;
+
@end