Skip to content

KlausC/PkgVersion.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PkgVersion.jl

Build Status Coverage Status

Provide macros to access fields version, uuid, authors in `Project.toml at compile time.

Usage

module MyModule
using Tar
using PkgVersion

const VERSION = PkgVersion.@Version 0
const UUID = PkgVersion.@Uuid 
const AUTHOR = PkgVersion.@Author "unknown@nowhere"

const VERSION_TAR = PkgVersion.Version(Tar)  

end

Notes

File Project.toml must be readable in package directory.

Author returns the first string of field authors.

About

Access `version`, `uuid`, etc. in `Project.toml`

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages