diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cd7b26..aef396c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/Project.toml b/Project.toml index 96e74da..c50a514 100644 --- a/Project.toml +++ b/Project.toml @@ -1,4 +1,4 @@ -name = "GitRepl" +name = "GitREPL" uuid = "86bc0129-654e-4751-9b96-b173469afcbd" authors = ["Dilum Aluthge", "contributors"] version = "1.0.0" diff --git a/README.md b/README.md index d7b1f92..6e5f2e7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/Project.toml b/docs/Project.toml index 926f578..4bfe6e4 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,3 +1,3 @@ [deps] Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -GitRepl = "86bc0129-654e-4751-9b96-b173469afcbd" +GitREPL = "86bc0129-654e-4751-9b96-b173469afcbd" diff --git a/docs/make.jl b/docs/make.jl index 8e77143..777230c 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -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=[ @@ -20,6 +20,6 @@ makedocs(; ) deploydocs(; - repo="github.com/JuliaVersionControl/GitRepl.jl", + repo="github.com/JuliaVersionControl/GitREPL.jl", devbranch="main", ) diff --git a/docs/src/index.md b/docs/src/index.md index b497fab..963f8e4 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -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] ``` diff --git a/src/GitRepl.jl b/src/GitREPL.jl similarity index 93% rename from src/GitRepl.jl rename to src/GitREPL.jl index 0a22bd9..a182375 100644 --- a/src/GitRepl.jl +++ b/src/GitREPL.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 267277d..21889e0 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,4 @@ -using GitRepl +using GitREPL using Test function withtempdir(f::Function) @@ -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