aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMScriptRunner.h
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMScriptRunner.h')
-rw-r--r--Foundation/GTMScriptRunner.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/Foundation/GTMScriptRunner.h b/Foundation/GTMScriptRunner.h
index 226d75b..088bd02 100644
--- a/Foundation/GTMScriptRunner.h
+++ b/Foundation/GTMScriptRunner.h
@@ -6,9 +6,9 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -25,15 +25,15 @@
// the "/bin/sh" interpreter is used, but others may be explicitly specified.
// This can be a convenient way to run quick shell commands from Cocoa, or even
// interact with other shell tools such as "bc", or even "gdb".
-//
-// It's important to note that by default commands and scripts will have their
+//
+// It's important to note that by default commands and scripts will have their
// environments erased before execution. You can control the environment they
// get with the -setEnvironment: method.
//
-// The best way to show what this class does is to show some examples.
+// The best way to show what this class does is to show some examples.
//
// Examples:
-//
+//
// GTMScriptRunner *sr = [GTMScriptRunner runner];
// NSString *output = [sr run:@"ls -l /dev/null"];
// /* output == "crw-rw-rw- 1 root wheel 3, 2 Mar 22 10:35 /dev/null" */
@@ -65,8 +65,8 @@
+ (GTMScriptRunner *)runnerWithPython;
// Returns an autoreleased GTMScriptRunner instance associated with the specified
-// interpreter, and the given args. The specified args are the arguments that
-// should be applied to the interpreter itself, not scripts run through the
+// interpreter, and the given args. The specified args are the arguments that
+// should be applied to the interpreter itself, not scripts run through the
// interpreter. For example, to start an interpreter using "perl -w", you could
// do:
// [GTMScriptRunner runnerWithInterpreter:@"/usr/bin/perl"
@@ -83,11 +83,11 @@
// specified interpreter. This method is the designated initializer.
- (id)initWithInterpreter:(NSString *)interp withArgs:(NSArray *)args;
-// Runs the specified command string by sending it through the interpreter's
-// standard input. The standard output is returned. The standard error is
+// Runs the specified command string by sending it through the interpreter's
+// standard input. The standard output is returned. The standard error is
// discarded.
- (NSString *)run:(NSString *)cmds;
-// Same as the previous method, except the standard error is returned in |err|
+// Same as the previous method, except the standard error is returned in |err|
// if specified.
- (NSString *)run:(NSString *)cmds standardError:(NSString **)err;
@@ -100,11 +100,11 @@
standardError:(NSString **)err;
// Returns the environment dictionary to use for the inferior process that will
-// run the interpreter. A return value of nil means that the interpreter's
+// run the interpreter. A return value of nil means that the interpreter's
// environment should be erased.
- (NSDictionary *)environment;
-// Sets the environment dictionary to use for the interpreter process. See
+// Sets the environment dictionary to use for the interpreter process. See
// NSTask's -setEnvironment: documentation for details about the dictionary.
// Basically, it's just a dict of key/value pairs corresponding to environment
// keys and values. Setting a value of nil means that the environment should be
@@ -112,8 +112,8 @@
//
// *** The default is nil. ***
//
-// By default, all interpreters will run with a clean environment. If you want
-// the interpreter process to inherit your current environment you'll need to
+// By default, all interpreters will run with a clean environment. If you want
+// the interpreter process to inherit your current environment you'll need to
// do the following:
//
// GTMScriptRunner *sr = [GTMScriptRunner runner];
@@ -122,7 +122,7 @@
// SECURITY NOTE: That said, in general you should NOT do this because an
// attacker can modify the environment that would then get sent to your scripts.
// And if your binary is suid, then you ABSOLUTELY should not do this.
-//
+//
- (void)setEnvironment:(NSDictionary *)newEnv;
// Sets (and returns) whether or not whitespace is automatically trimmed from