5 Commits (a53d49a2b0c42e88c124db2b6fd6dedee4f325c2)

Author SHA1 Message Date
Persevere Von cb8650e8e0 Fix #7263 (#7264) 6 years ago
Peter Jaszkowiak ae24bca16e CLI refactor with commander (#6058)
* CLI refactor with commander

- Modularized the functionality
- All functionality done directly from `./nodebb` now
(still available from `app` for backwards compatibility)
- Moved all CLI code from `./nodebb` to `src/cli`
- Fixed `nodebb.bat` to work from any location, like `./nodebb`, and
also hides command output
- Overwrite some commander methods to add CLI color support
- Added `./nodebb info` for quick info including git hash, NodeBB
version, node version, and some database info
- Refactored `./nodebb reset` to allow multiple resets at once
- Changed `./nodebb restart` to essentially stop and start, as Windows
doesn't support signals
- Added `-l, --log` option which works on `./nodebb start` and `./nodebb
restart` to show logging, like `./nodebb slog`
- Expanded `-d, --dev` option which works on them as well, like
`./nodebb dev`
- Improvements to self-help. `./nodebb build -h` will output all
possible targets
- `./nodebb reset` explains usage better

* Fix some style inconsistencies

* Fix prestart being required before modules installed

* Fix travis failures

* Fix `help` command to output help for subcommands

* Pick steps of the upgrade process to run

* Fix formatting for upgrade help

* Fix web installer
7 years ago
Peter Jaszkowiak db1fdb897f Fixes for dev-ing on windows
- Change `nodebb.bat` to simply run `node ./nodebb` with same arguments
- Fix `npm test` for windows
8 years ago
Schamper eb1fe77510 That's not how you do comments silly 10 years ago
Schamper 9b40c44fd8 Simple bat file for Windows. Not all options are supported, but it's a good start. 10 years ago