Skip to content

Commit

Permalink
Change to public
Browse files Browse the repository at this point in the history
  • Loading branch information
KS1019 committed Nov 4, 2023
1 parent 53d0357 commit 15b22ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/cd.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let currentDir = Script().exec("pwd").asString()

let d = Script()
.cd(to: "../")
.cd(to: "-")
.cd(to: currentDir)
.exec("pwd")
.match(currentDir)
.exec("echo 'Test Success'")
Expand Down
4 changes: 2 additions & 2 deletions Sources/ScriptSwift/ExeternalCommands.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ShellOut

extension Script {
public func cd(to path: String) -> Script {
public extension Script {
func cd(to path: String) -> Script {
do {
try shellOut(to: "cd " + path)
return self
Expand Down

0 comments on commit 15b22ef

Please sign in to comment.