Skip to content

Return the remote repository URL of any Julia method

License

Notifications You must be signed in to change notification settings

JuliaPluto/MethodURL.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MethodURL

Stable Dev Build Status Coverage Aqua

This package gives a URL to github/gitlab/etc where a method from a package is defined.

Example

julia> import MethodURL, Example

julia> MethodURL.url(
          methods(Example.hello)[1]
       )
1-element Vector{String}:
 "https://github.com/JuliaLang/Example.jl/blob/v0.5.5/src/Example.jl#L9"

Context

Julia has a function Base.url(::Method), but this function only works for methods from Base. It worked on non-Base methods in previous Julia versions, but this functionality disappeared (see JuliaLang/julia#47709). This package aims to reimplement that functionality for modern Julia versions.

Work in progress

This package is still being worked on. When it is finished, we want to use it in Pluto.jl stack frames, see fonsp/Pluto.jl#2813

About

Return the remote repository URL of any Julia method

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages