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

Commit

Permalink
Move REPL functionality to GitRepl.jl (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>

Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
  • Loading branch information
DilumAluthge and giordano authored Mar 22, 2021
1 parent 3c3d6f7 commit 005e89d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 56 deletions.
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
7 changes: 0 additions & 7 deletions src/GitCommand.jl
Original file line number Diff line number Diff line change
@@ -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
23 changes: 0 additions & 23 deletions src/repl.jl

This file was deleted.

12 changes: 0 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 005e89d

Please sign in to comment.