@spree/cli 2.3.7 → 2.3.9

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.
Files changed (3) hide show
  1. package/README.md +22 -0
  2. package/dist/index.js +140 -126
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -88,6 +88,28 @@ Open an interactive Rails console inside the running container.
88
88
  spree console
89
89
  ```
90
90
 
91
+ ### `spree shell`
92
+
93
+ Open an interactive bash shell inside the web container. If the container is down, a one-off container is started against the same volumes instead.
94
+
95
+ ```bash
96
+ spree shell
97
+ spree bash # alias
98
+ ```
99
+
100
+ ### `spree rspec`
101
+
102
+ Run the RSpec test suite inside the web container with `RAILS_ENV=test`. Everything after `rspec` is passed through to RSpec.
103
+
104
+ ```bash
105
+ spree rspec # full suite
106
+ spree rspec spec/models/product_spec.rb # one file
107
+ spree rspec spec/models/product_spec.rb:15 # one example
108
+ spree rspec --format documentation
109
+ ```
110
+
111
+ Before the first run, create the test database with `spree rails db:test:prepare`.
112
+
91
113
  ### `spree user create`
92
114
 
93
115
  Create an admin user. Prompts interactively for email and password, or accepts flags for scripting.