Skip to content

Commit

Permalink
Export and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Nov 17, 2018
1 parent f48d952 commit 9add64c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Expand Up @@ -16,5 +16,6 @@ Encoding: UTF-8
LazyData: true
Imports: sys (>= 2.1)
RoxygenNote: 6.1.1
Roxygen: list(markdown = TRUE)
Suggests:
testthat
2 changes: 0 additions & 2 deletions R/askpass.R
Expand Up @@ -31,8 +31,6 @@ askpass_path <- function(){
package = 'askpass', mustWork = TRUE)
} else if(is_macos()){
system.file('mac-askpass', package = 'askpass', mustWork = TRUE)
} else {
stop("No custom password entry app for your platform")
}
}

Expand Down
9 changes: 9 additions & 0 deletions R/ssh.R
@@ -0,0 +1,9 @@
#' SSH ASKPASS
#'
#' This returns the path to the native askpass executable which can be
#' used by git or ssh-agent. On Windows and MacOS the package uses this
#' to automatically set the `SSH_ASKPASS` and `GIT_ASKPASS` variables on
#' load (if not already set). Users don't have worry about this.
ssh_askpass <- function(){
askpass_path()
}
2 changes: 1 addition & 1 deletion man/askpass.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions man/ssh_askpass.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-option.R
Expand Up @@ -2,7 +2,7 @@ context("test-option")

test_that("program exists", {
if(is_windows() || is_macos()){
expect_true(file.exists(askpass_path()))
expect_true(file.exists(ssh_askpass()))
}
})

Expand Down

0 comments on commit 9add64c

Please sign in to comment.