@@ -2,7 +2,7 @@ const help = {}
22
33help . default =
44 `
5- Generate production ready Nodejs application
5+ Build ExpressJS applications with speed and efficiency with BangaJS
66
77
88Usage:
@@ -12,18 +12,11 @@ Usage:
1212
1313Commands:
1414
15- docs\t\t\tOpen the BangaJS documentation website
16- generate\t\tGenerate and/or modify files
17- help\t\t\ttLists available commands and options.
18- new\t\t\tCreates a new workspace and an initial Banga app.
19- version\t\tShow the BangaJS version information
20-
21-
22- Options:
23-
24- -h, --help\t\tLists available commands and options.
25- -v, --version\t\tShow the BangaJS version information
26- -f, --force\t\tWhen true, forces overwriting of existing files.
15+ docs\t\t\tOpens Banga docmentation in a browser
16+ generate\t\tGenerates and/or modifies files.
17+ help\t\t\tLists available commands and their descriptions.
18+ new\t\t\tCreates a new Express app.
19+ version\t\tDisplays Banga version.
2720
2821
2922Run 'banga <command> --help' for more information on a command.
@@ -40,24 +33,44 @@ Usage:
4033 $ banga generate <type> <name> [<options>]
4134
4235
43- type:
36+ Types:
37+
38+ a, asset\t\tCreate controller, model, route and service files.
39+ c, controller\t\tCreate controller file
40+ m, model\t\tCreate model file
41+ r, route\t\tCreate route file
42+ s, service\t\tCreate service file
43+
44+
45+ Options:
46+ --auth\t\tAdd auth middleware to routes
47+ --no-controller\tDo not create controller file
48+ --no-create\t\tDo not include create methods
49+ --no-crud\t\tDo not include CRUD methods
50+ --no-delete\t\tDo not include delete methods
51+ --force\t\tReplace file if it already exists
52+ --no-model\t\tDo not create model file
53+ --no-read\t\tDo not include read methods
54+ --root\t\tCreates file at the root of the current working directory
55+ --no-route\t\tDo not create route file
56+ --no-service\t\tDo not create service file
57+ --no-update\t\tDo not include update methods
4458
45- a, asset\t\tOpen the BangaJS documentation website
46- c, controller\t\tOpen the BangaJS documentation website
47- m, model\t\tGenerate and/or modify files
48- r, route\t\tLists available commands and options.
49- s, service\t\tCreates a new workspace and an initial Banga app.
5059`
5160
5261
5362help . new =
5463 `
55- Creates a new workspace and an initial Banga app.
56-
64+ Creates a new Express app.
5765
5866Usage:
5967
60- $ banga new <name> [<options>]
68+ $ banga new <app-name> [<options>]
69+
70+
71+ Options:
72+ --force\t\tReplace file if it already exists
73+ --no-auth\t\tDo not include User and authentication files
6174`
6275
6376
0 commit comments