change new to gen in instance.ex . Refactor user.ex

This commit is contained in:
Rin Toshaka 2018-12-04 19:00:45 +01:00
commit 6396f1b58f
2 changed files with 44 additions and 58 deletions

View file

@ -8,7 +8,7 @@ defmodule Mix.Tasks.Pleroma.Instance do
## Generate a new instance config.
mix pleroma.instance new [OPTION...]
mix pleroma.instance gen [OPTION...]
If any options are left unspecified, you will be prompted interactively
@ -26,7 +26,7 @@ defmodule Mix.Tasks.Pleroma.Instance do
- `--dbpass DBPASS` - the password to use for the database connection
"""
def run(["new" | rest]) do
def run(["gen" | rest]) do
{options, [], []} =
OptionParser.parse(
rest,