Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 9ee355d

Browse files
Merge #24
24: Don’t export `@git_cmd` - remove `@git_cmd` from the public API r=DilumAluthge a=DilumAluthge Co-authored-by: Dilum Aluthge <[email protected]>
2 parents 580d45a + 62dca95 commit 9ee355d

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GitCommand"
22
uuid = "49b5b516-ca3f-4003-a081-42bdcf55082d"
33
authors = ["Dilum Aluthge", "Brown Center for Biomedical Informatics"]
4-
version = "0.1.2"
4+
version = "0.2.0"
55

66
[deps]
77
Git_jll = "f8c6e375-362e-5223-8a59-34ff63f689eb"

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ git() do git
2525
run(`$git clone https://github.com/JuliaRegistries/General`)
2626
end
2727
```
28-
29-
```julia
30-
using GitCommand
31-
32-
run(git`clone https://github.com/JuliaRegistries/General`)
33-
```

src/GitCommand.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ module GitCommand
33
import Git_jll
44

55
export git
6-
export @git_cmd
6+
# export @git_cmd
77

88
include("env_mapping.jl")
99
include("git_cmd.jl")
10+
include("nonpublic.jl")
1011
include("public.jl")
1112
include("util.jl")
1213

src/nonpublic.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
macro git_cmd(ex)
2+
return _git_cmd(ex)
3+
end

src/public.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
macro git_cmd(ex)
2-
return _git_cmd(ex)
3-
end
4-
51
function git(f::Function;
62
adjust_PATH::Bool = true,
73
adjust_LIBPATH::Bool = true)

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ end
3030
with_temp_dir() do tmp_dir
3131
@test !isdir("General")
3232
@test !isfile(joinpath("General", "Registry.toml"))
33-
cmd = git`clone https://github.com/JuliaRegistries/General`
33+
cmd = GitCommand.git`clone https://github.com/JuliaRegistries/General`
3434
@test cmd isa Cmd
3535
run(cmd)
3636
@test isdir("General")

0 commit comments

Comments
 (0)