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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c39de7da9ba4bbf958000392f249f2d1d6892c16
4
- data.tar.gz: ba4a2f27e67ae47b617c8cdef53b33208ed26412
3
+ metadata.gz: 16467c0fdc0f0600ed68798784bed7830c0ad86c
4
+ data.tar.gz: 171c967c203d57196626e14ff599a58f0ff05def
5
5
  SHA512:
6
- metadata.gz: 3f7e33fd191d8947f5acbdc2e6126190caeca8da94bc8f7db293ff2b23bcc64e1d888377d8cbf62d0e02d60d7d5726628fb8443e8093c2199b66fd5a90547e48
7
- data.tar.gz: b316a807f7b0332eaebc0cbfab713f2d9358c2504ea8c5e5351243531f0bb6b74a6d1b99d6e772ddb968cc6a665dc944c43889d305fe9500a2f5c1c61721776f
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PhoenixCli
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phoenix-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dayvson Lima