mirror of
https://github.com/filiprojek/nork.git
synced 2024-11-02 18:12:28 +01:00
Readme and help updated
This commit is contained in:
parent
9c1302bb5b
commit
3092aea183
12
README.md
12
README.md
@ -26,11 +26,11 @@ Options:
|
|||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
create [app-name] create a new project
|
create [app-name] create a new project
|
||||||
make:controller create a new controller
|
make controller [name] create a new controller
|
||||||
make:middleware create a new middleware
|
make middleware [name] create a new middleware
|
||||||
make:model create a new model
|
make model [name] create a new model
|
||||||
make:route create a new route
|
make rout [name] create a new route
|
||||||
make:test create a new test
|
make test [name] create a new test
|
||||||
make:view create a new view
|
make view [name] create a new view
|
||||||
setup set up an existing project for nork
|
setup set up an existing project for nork
|
||||||
```
|
```
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nork",
|
"name": "nork",
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"description": "The best node.js 'framework' :)",
|
"description": "The best node.js 'framework' :)",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"bin": "src/app.js",
|
"bin": "src/app.js",
|
||||||
|
24
src/app.js
24
src/app.js
@ -37,12 +37,12 @@ const logHelp = (specific = false, command = false) => {
|
|||||||
if (specific == 'make') {
|
if (specific == 'make') {
|
||||||
console.log(`Usage: ${specific}:[component]`)
|
console.log(`Usage: ${specific}:[component]`)
|
||||||
console.log()
|
console.log()
|
||||||
console.log(pad(' make:controller', spc), 'create a new controller')
|
console.log(pad(' make controller [name]', spc), 'create a new controller')
|
||||||
console.log(pad(' make:middleware', spc), 'create a new middleware')
|
console.log(pad(' make middleware [name]', spc), 'create a new middleware')
|
||||||
console.log(pad(' make:model', spc), 'create a new model')
|
console.log(pad(' make model [name]', spc), 'create a new model')
|
||||||
console.log(pad(' make:route', spc), 'create a new route')
|
console.log(pad(' make route [name]', spc), 'create a new route')
|
||||||
console.log(pad(' make:test', spc), 'create a new test')
|
console.log(pad(' make test [name]', spc), 'create a new test')
|
||||||
console.log(pad(' make:view', spc), 'create a new view')
|
console.log(pad(' make view [name]', spc), 'create a new view')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(`Usage: ${specific} [options]`)
|
console.log(`Usage: ${specific} [options]`)
|
||||||
@ -57,12 +57,12 @@ const logHelp = (specific = false, command = false) => {
|
|||||||
console.log()
|
console.log()
|
||||||
console.log('Commands:')
|
console.log('Commands:')
|
||||||
console.log(pad(' create [app-name]', spc), 'create a new project')
|
console.log(pad(' create [app-name]', spc), 'create a new project')
|
||||||
console.log(pad(' make:controller', spc), 'create a new controller')
|
console.log(pad(' make controller [name]', spc), 'create a new controller')
|
||||||
console.log(pad(' make:middleware', spc), 'create a new middleware')
|
console.log(pad(' make middleware [name]', spc), 'create a new middleware')
|
||||||
console.log(pad(' make:model', spc), 'create a new model')
|
console.log(pad(' make model [name]', spc), 'create a new model')
|
||||||
console.log(pad(' make:route', spc), 'create a new route')
|
console.log(pad(' make route [name]', spc), 'create a new route')
|
||||||
console.log(pad(' make:test', spc), 'create a new test')
|
console.log(pad(' make test [name]', spc), 'create a new test')
|
||||||
console.log(pad(' make:view', spc), 'create a new view')
|
console.log(pad(' make view [name]', spc), 'create a new view')
|
||||||
console.log(pad(' setup', spc), 'set up an existing project for nork')
|
console.log(pad(' setup', spc), 'set up an existing project for nork')
|
||||||
console.log()
|
console.log()
|
||||||
console.log(' Run', colors.cyan('nork help <command>'), 'for detailed usage of given command.')
|
console.log(' Run', colors.cyan('nork help <command>'), 'for detailed usage of given command.')
|
||||||
|
Loading…
Reference in New Issue
Block a user