From bccefa18c72465b2ec41a23eeda5ceb6f4d36204 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 9 Nov 2010 11:38:44 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20to=20SPStringAddition=20the=20metho?= =?UTF-8?q?d=20runBashCommandWithEnvironment:atCurrentDirectoryPath:error?= =?UTF-8?q?=20which=20will=20run=20self=20as=20bash=20command=20and=20will?= =?UTF-8?q?=20return=20its=20result=20-=20if=20an=20error=20occurred=20it?= =?UTF-8?q?=20will=20return=20a=20NSError=20if=20desired=20-=20added=20the?= =?UTF-8?q?=20chance=20to=20pass=20shell=20environment=20variables=20and?= =?UTF-8?q?=20start=20directory=20for=20future=20usage=20in=20user-definab?= =?UTF-8?q?le=20plugins=20written=20as=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPStringAdditions.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/SPStringAdditions.h') 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 -- cgit v1.2.3