Kare Morstol
325af43d42
Include the command when throwing ShellError.ReturnedErrorCode .
2015-09-26 23:46:39 +02:00
Kare Morstol
e13202ad09
runAndPrint throws error when command is inaccessible.
2015-09-25 00:26:09 +02:00
Kare Morstol
b253497f07
Let run* commands find path to executable automatically.
2015-09-23 02:27:16 +02:00
Kare Morstol
8c227b8fae
Let run* commands take shell arguments of any type.
2015-09-21 23:21:00 +02:00
Kare Morstol
d6055c6062
Remove CatchingFire framework and add it as a single file.
...
Carthage 0.9.1 is not compatible with the catching fire framework as it has too many SDKs (5). It seems 2 is the limit. In any case it was a bit too much trouble and overhead just to include the functionality of this one file.
2015-09-19 19:09:30 +02:00
Kare Morstol
9cfd7e5c39
Add run*(executable: String, _ args: [String]). Make global versions of main.run* .
...
All unit tests use global functions.
Removed unnecessary testFinishReturnsSelf.
2015-09-07 23:58:50 +02:00
Kare Morstol
bacdbddddc
Implement ShellContextType.runAndPrint .
2015-09-06 20:58:31 +02:00
Kare Morstol
c6975aefd1
Make AsyncShellTask.finish return self.
...
For method chaining.
2015-09-03 18:25:28 +02:00
Kare Morstol
de708331a8
Add 'ShellError', which may be thrown from completed shell commands.
2015-09-03 17:45:28 +02:00
Kare Morstol
10cf827d8b
Add CatchingFire testing framework.
...
For testing error handling.
2015-09-03 17:27:07 +02:00
Kare Morstol
239d32edfd
Rename ‘$’ to ‘run’.
...
Trying to not repeat the mistakes of bash shell scripting here.
2015-09-02 17:34:40 +02:00
Kare Morstol
a8bfc6b1a6
Add 'runAsync' commands for asynchronous shell execution.
2015-09-02 16:55:33 +02:00
Kare Morstol
da3a0f5361
Add $(bash:) . Refactor command.swift.
...
Had to add leading spaces (shudder) to the documentation comment to get Xcode to render it properly. Hopefully this is just a temporary fix.
2015-08-06 03:49:57 +02:00
Kare Morstol
8bec5cf499
Eviscerate pretty much everything.
...
Will be changing a lot of the API, and do not want to have to change all the unit test and the rest of the code for every single change.
2015-07-19 22:49:39 +02:00
Kare Morstol
a9dbdcf629
Update to Swift 2.0 .
...
Wow, lots of changes in Swift 2.0! And all of them great, except for renaming println to print. What's up with that?
This is just to get it to compile, we will be trying and throwing errors in no time.
2015-06-28 00:52:40 +02:00
Kare Morstol
a1e26bfcc8
Tidy up / nitpick.
2014-12-09 18:07:04 +01:00
Kare Morstol
548e0740d4
Tidy up the code some more.
2014-10-30 00:28:20 +01:00
Kare Morstol
1b78cab9fd
Add a space before result of the parameters function.
...
So you don't have to remember to add it after the command.
2014-10-24 20:24:07 +02:00
Kare Morstol
6d588bfe29
Add "parameters" function for turning a sequence into valid parameters for a shell command, properly quoted.
2014-10-23 01:41:53 +02:00
Kare Morstol
10f0f46c10
Add "$("shellcommand")" as a shortcut for in-line commands.
...
Like the one you have in bash.
2014-09-11 18:15:25 +02:00
Kare Morstol
96ab5a2070
Enable "func run (shellcommand: String) -> ReadableStreamType" to also be run by itself on a single line.
...
A thorough explanation is forthcoming.
2014-09-02 15:23:22 +02:00
Kare Morstol
7d60ec13ca
Fixed info at the top of each file. Renamed String_Tests to String_Partition_Tests
2014-08-20 01:12:22 +02:00
Kare Morstol
b92999eb44
Added the actual code, thereby improving the project's usefulness considerably.
2014-08-20 00:15:20 +02:00