Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainshayne233/depz
https://github.com/mainshayne233/depz
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mainshayne233/depz
- Owner: MainShayne233
- Created: 2017-07-08T20:43:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T11:29:16.000Z (about 6 years ago)
- Last Synced: 2023-03-10T17:19:29.936Z (over 1 year ago)
- Language: Elixir
- Size: 39.1 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Depz
Command line tools for mix dependencies
[![Build Status](https://travis-ci.org/MainShayne233/depz.svg?branch=master)](https://travis-ci.org/MainShayne233/depz)
[![Code Climate](https://codeclimate.com/github/MainShayne233/depz/badges/gpa.svg)](https://codeclimate.com/github/MainShayne233/depz)## Current State
Though functional, this tool is still in early development.
Since it writes to disk, it can literally wipe out any important information/data
you may have in your `mix.exs` file, so proceed with absolute caution.## Install
This is a package you install globally on your machine using `mix archive.install`, like so:
```bash
mix archive.install github MainShayne233/depz
```## Usage
To add a dependency to your `mix.exs` file, from your app's directory run:
```bash
mix depz.add httpotion# or for a specific version
mix depz.add httpotion -v 3.0.1
```If you don't specify the version, it defaults to the latest version from [hex.pm](https://hex.pm)
## Dependency List Style
Elixir allows you to define your dependency list in `mix.exs` with whatever style you want, like
```
[{:httpotion, "~> 3.0.2"},
{:phoenix, "~> 1.3"},
{:calendar, "~> 1.2.3"}]
```or
```
[
{:httpotion, "~> 3.0.2"},
{:phoenix, "~> 1.3"},
{:calendar, "~> 1.2.3"},
]
```This tool tries to identify what style you are using and maintain it when adding a new dependency.