Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rename package from GitRepl.jl to GitREPL.jl #17

Merged
merged 1 commit into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ jobs:
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using GitRepl
DocMeta.setdocmeta!(GitRepl, :DocTestSetup, :(using GitRepl); recursive=true)
doctest(GitRepl)'
using GitREPL
DocMeta.setdocmeta!(GitREPL, :DocTestSetup, :(using GitREPL); recursive=true)
doctest(GitREPL)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "GitRepl"
name = "GitREPL"
uuid = "86bc0129-654e-4751-9b96-b173469afcbd"
authors = ["Dilum Aluthge", "contributors"]
version = "1.0.0"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# GitRepl
# GitREPL

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaVersionControl.github.io/GitRepl.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaVersionControl.github.io/GitRepl.jl/dev)
[![Build Status](https://github.com/JuliaVersionControl/GitRepl.jl/workflows/CI/badge.svg)](https://github.com/JuliaVersionControl/GitRepl.jl/actions)
[![Coverage](https://codecov.io/gh/JuliaVersionControl/GitRepl.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaVersionControl/GitRepl.jl)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaVersionControl.github.io/GitREPL.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaVersionControl.github.io/GitREPL.jl/dev)
[![Build Status](https://github.com/JuliaVersionControl/GitREPL.jl/workflows/CI/badge.svg)](https://github.com/JuliaVersionControl/GitREPL.jl/actions)
[![Coverage](https://codecov.io/gh/JuliaVersionControl/GitREPL.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaVersionControl/GitREPL.jl)

## Git REPL mode

```julia
julia> using GitRepl
julia> using GitREPL

# Press , to enter the Git REPL mode

Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
GitRepl = "86bc0129-654e-4751-9b96-b173469afcbd"
GitREPL = "86bc0129-654e-4751-9b96-b173469afcbd"
14 changes: 7 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using GitRepl
using GitREPL
using Documenter

DocMeta.setdocmeta!(GitRepl, :DocTestSetup, :(using GitRepl); recursive=true)
DocMeta.setdocmeta!(GitREPL, :DocTestSetup, :(using GitREPL); recursive=true)

makedocs(;
modules=[GitRepl],
modules=[GitREPL],
authors="Dilum Aluthge and contributors",
repo="https://github.com/JuliaVersionControl/GitRepl.jl/blob/{commit}{path}#{line}",
sitename="GitRepl.jl",
repo="https://github.com/JuliaVersionControl/GitREPL.jl/blob/{commit}{path}#{line}",
sitename="GitREPL.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://JuliaVersionControl.github.io/GitRepl.jl",
canonical="https://JuliaVersionControl.github.io/GitREPL.jl",
assets=String[],
),
pages=[
Expand All @@ -20,6 +20,6 @@ makedocs(;
)

deploydocs(;
repo="github.com/JuliaVersionControl/GitRepl.jl",
repo="github.com/JuliaVersionControl/GitREPL.jl",
devbranch="main",
)
8 changes: 4 additions & 4 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
```@meta
CurrentModule = GitRepl
CurrentModule = GitREPL
```

# GitRepl
# GitREPL

Documentation for [GitRepl](https://github.com/JuliaVersionControl/GitRepl.jl).
Documentation for [GitREPL](https://github.com/JuliaVersionControl/GitREPL.jl).

```@index
```

```@autodocs
Modules = [GitRepl]
Modules = [GitREPL]
```
6 changes: 3 additions & 3 deletions src/GitRepl.jl → src/GitREPL.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module GitRepl
module GitREPL

import Git
import ReplMaker

export gitrepl

const GIT_REPL_MODE_NAME = "GitRepl.jl Git REPL mode"
const GIT_REPL_MODE_NAME = "GitREPL.jl Git REPL mode"
const GIT_REPL_MODE_PROMPT_TEXT = "git> "
const GIT_REPL_MODE_START_KEY = ','

function _gitrepl_parser(repl_input::AbstractString)
return quote
repl_input = $(Expr(:quote, repl_input))
run(`$(GitRepl.Git.git()) $(split(repl_input))`)
run(`$(GitREPL.Git.git()) $(split(repl_input))`)
return nothing
end
end
Expand Down
18 changes: 9 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GitRepl
using GitREPL
using Test

function withtempdir(f::Function)
Expand All @@ -10,16 +10,16 @@ function withtempdir(f::Function)
return nothing
end

@testset "GitRepl.jl" begin
@testset "GitREPL.jl" begin
withtempdir() do tmp_dir
@test !isdir("GitRepl.jl")
@test !isfile(joinpath("GitRepl.jl", "Project.toml"))
expr = GitRepl._gitrepl_parser("clone https://github.com/JuliaVersionControl/GitRepl.jl")
@test !isdir("GitREPL.jl")
@test !isfile(joinpath("GitREPL.jl", "Project.toml"))
expr = GitREPL._gitrepl_parser("clone https://github.com/JuliaVersionControl/GitREPL.jl")
@test expr isa Expr
@test !isdir("GitRepl.jl")
@test !isfile(joinpath("GitRepl.jl", "Project.toml"))
@test !isdir("GitREPL.jl")
@test !isfile(joinpath("GitREPL.jl", "Project.toml"))
@eval $(expr)
@test isdir("GitRepl.jl")
@test isfile(joinpath("GitRepl.jl", "Project.toml"))
@test isdir("GitREPL.jl")
@test isfile(joinpath("GitREPL.jl", "Project.toml"))
end
end