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:
@@ -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)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user