Remove "listallexecutablesinpath.swift" and turn it into a Gist. List it as an example in the README.

It was way too wordy to use as a test.
This commit is contained in:
Kare Morstol
2014-11-26 00:00:15 +01:00
parent f60f6ae083
commit 65625bbc75
4 changed files with 2 additions and 17 deletions
@@ -2,4 +2,4 @@
import SwiftShell
run("./listallexecutablesinpath.swift") |> run("./print_linenumbers.swift") |> writeTo(standardoutput)
run("ls") |> run("./print_linenumbers.swift") |> writeTo(standardoutput)
@@ -1,15 +0,0 @@
#!/usr/bin/env swiftshell
import SwiftShell
/*
let directories = environment["PATH"]!.split(":")
for directory in directories {
run("find \"\(directory)\" -type f -perm +ugo+x -print") |> writeTo(standardoutput)
}
*/
environment["PATH"]! |> split(":")
|> map { directory in run("find \"\(directory)\" -type f -perm +ugo+x -print") }
|> writeTo(standardoutput)
-1
View File
@@ -7,7 +7,6 @@ set -e
set -o pipefail
#./exitswhenopeningnon-existentfile.swift
./listallexecutablesinpath.swift
./print_arguments.swift 1 2
./print_environment.swift
ls | ./print_linenumbers.swift