diff --git a/Project.toml b/Project.toml index c821fa3..0bb1ecf 100644 --- a/Project.toml +++ b/Project.toml @@ -5,12 +5,10 @@ version = "3.0.0-DEV" [deps] Git_jll = "f8c6e375-362e-5223-8a59-34ff63f689eb" -ReplMaker = "b873ce64-0db9-51f5-a568-4457d8e49576" [compat] Git_jll = "2.31" JLLWrappers = "1.1" -ReplMaker = "0.2.3" julia = "1.6" [extras] diff --git a/README.md b/README.md index 65a52cb..c600eb1 100644 --- a/README.md +++ b/README.md @@ -22,18 +22,6 @@ julia> using GitCommand julia> run(`$(git()) clone https://github.com/JuliaRegistries/General`) ``` -## Git REPL mode - -```julia -julia> using GitCommand - -julia> gitrepl() # you only need to run this once per Julia session - -# Press , to enter the Git REPL mode - -git> clone https://github.com/JuliaRegistries/General -``` - ## Acknowledgements - This work was supported in part by National Institutes of Health grants U54GM115677, R01LM011963, and R25MH116440. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. diff --git a/src/GitCommand.jl b/src/GitCommand.jl index b480f46..7732835 100644 --- a/src/GitCommand.jl +++ b/src/GitCommand.jl @@ -1,17 +1,10 @@ module GitCommand import Git_jll -import ReplMaker # export @git_cmd export git -export gitrepl - -const GIT_REPL_MODE_NAME = "GitCommand.jl Git REPL mode" -const GIT_REPL_MODE_PROMPT_TEXT = "git> " -const GIT_REPL_MODE_START_KEY = ',' include("git.jl") -include("repl.jl") end # end module GitCommand diff --git a/src/repl.jl b/src/repl.jl deleted file mode 100644 index 6fb44f1..0000000 --- a/src/repl.jl +++ /dev/null @@ -1,23 +0,0 @@ -import ReplMaker - -function _gitrepl_parser(repl_input::AbstractString) - return quote - repl_input = $(Expr(:quote, repl_input)) - run(`$(GitCommand.git()) $(split(repl_input))`) - return nothing - end -end - -function gitrepl(; mode_name = GIT_REPL_MODE_NAME, - prompt_text = GIT_REPL_MODE_PROMPT_TEXT, - start_key = GIT_REPL_MODE_START_KEY, - kwargs...) - ReplMaker.initrepl( - _gitrepl_parser; - mode_name = mode_name, - prompt_text = prompt_text, - start_key = start_key, - kwargs..., - ) - return nothing -end diff --git a/test/runtests.jl b/test/runtests.jl index f79afa0..eee38e6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -41,18 +41,6 @@ include("test-utils.jl") @test isdir("GitCommand.jl") @test isfile(joinpath("GitCommand.jl", "Project.toml")) end - - with_temp_dir() do tmp_dir - @test !isdir("GitCommand.jl") - @test !isfile(joinpath("GitCommand.jl", "Project.toml")) - expr = GitCommand._gitrepl_parser("clone https://github.com/JuliaVersionControl/GitCommand.jl") - @test expr isa Expr - @test !isdir("GitCommand.jl") - @test !isfile(joinpath("GitCommand.jl", "Project.toml")) - @eval $(expr) - @test isdir("GitCommand.jl") - @test isfile(joinpath("GitCommand.jl", "Project.toml")) - end end @testset "Safety" begin