phoenix-cli 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/phoenix-cli/cli.rb +1 -1
- data/lib/phoenix-cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16467c0fdc0f0600ed68798784bed7830c0ad86c
|
|
4
|
+
data.tar.gz: 171c967c203d57196626e14ff599a58f0ff05def
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07234ce353b936a1bef41db1c5d83b302af523d0d3578815d9030a079f1651d42587b72b1776953080728796c693c6e63131869701b84666d1691b20e645a9ad
|
|
7
|
+
data.tar.gz: 0ebdc2251bacbd9c57871d8c391b3a98657c595ab0cab53cc89a5c1ccf8a8722e39fa8559bd65f64801bdabcda941e035c1940888b336589a03469b372463ca8
|
data/README.md
CHANGED
|
@@ -49,6 +49,15 @@ phoenix generate GENERATOR_NAME
|
|
|
49
49
|
| presence | Generates a Presence tracker for your application | mix phoenix.gen.presence
|
|
50
50
|
| secret | Generates a secret and print it to the terminal | mix phoenix.gen.secret
|
|
51
51
|
|
|
52
|
+
## Database Commands
|
|
53
|
+
|
|
54
|
+
| Command | Description | Phoenix equivalent |
|
|
55
|
+
| --- | --- | --- |
|
|
56
|
+
| db:create | Create database | mix ecto.create
|
|
57
|
+
| db:migrate | Run database migrations | mix ecto.migrate
|
|
58
|
+
| db:drop | Drop database | mix deps.drop
|
|
59
|
+
| db:dump | Dumps the current environment’s database | mix ecto.dump
|
|
60
|
+
|
|
52
61
|
## Development
|
|
53
62
|
|
|
54
63
|
When hacking on this gem, the REPL `pry` comes in handy. You can load the
|
data/lib/phoenix-cli/cli.rb
CHANGED
|
@@ -58,7 +58,7 @@ module PhoenixCli
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
if ['json', 'api'].include? generator
|
|
61
|
-
exec("mix phoenix.json #{resource_camelized} #{resource_pluralized} #{attributes.join(' ')}")
|
|
61
|
+
exec("mix phoenix.gen.json #{resource_camelized} #{resource_pluralized} #{attributes.join(' ')}")
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
if ['channel', 'presence', 'secret', 'digest'].include? generator
|
data/lib/phoenix-cli/version.rb
CHANGED