Skip to content

Commit

Permalink
home path
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed Aug 1, 2019
1 parent 7716b4a commit 09d69b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/CommandKit/Commands/File+Cmd.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ extension Cmd {
}
}


/// Return full home path
public func home() -> EventLoopFuture<String> {
return pwd(relativePath: "~")
}

/// Set current working directory
/// - Parameter path: Path
/// - Note: Convenience method for `shell.cd(path: String)`
Expand Down

0 comments on commit 09d69b7

Please sign in to comment.