Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit 09d69b7

Browse files
committed
home path
1 parent 7716b4a commit 09d69b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/CommandKit/Commands/File+Cmd.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ extension Cmd {
1515
}
1616
}
1717

18+
19+
/// Return full home path
20+
public func home() -> EventLoopFuture<String> {
21+
return pwd(relativePath: "~")
22+
}
23+
1824
/// Set current working directory
1925
/// - Parameter path: Path
2026
/// - Note: Convenience method for `shell.cd(path: String)`

0 commit comments

Comments
 (0)