Packages
project_info
1.0.0
A mix task to get info about the current mix project such as name or version number. Useful to automate tasks using a CI server or a build script.
Current section
Files
Jump to
Current section
Files
project_info
README.md
README.md
# ProjectInfo
**A Mix task for getting information about the current mix project**
## Installation
1. Add project_info to your list of dependencies in `mix.exs`:
def deps do
[{:project_info, "~> 1.0.0"}]
end
2. Ensure project_info is started before your application:
def application do
[applications: [:project_info]]
end
## Usage
Get project name:
```
mix project_info.name
```
Get project version:
```
mix project_info.version
```
Get all the project config:
```
mix project_info.config
```
Get an specific configuration parameter:
```
mix project_info.get default_task
```