MCPcopy
hub / github.com/infinitered/ignite / showGeneratorHelp

Function showGeneratorHelp

src/tools/generators.ts:67–105  ·  view source on GitHub ↗
(toolbox: GluegunToolbox)

Source from the content-addressed store, hash-verified

65
66// eslint-disable-next-line @typescript-eslint/no-unused-vars
67export function showGeneratorHelp(toolbox: GluegunToolbox) {
68 igniteHeading()
69 heading("Ignite Generators")
70 p()
71 p("When you create a new app with Ignite CLI, it will install several generator")
72 p("templates in the project folder under the `ignite/templates` folder.")
73 p()
74 heading("Commands")
75 p()
76 command("--list ", "List installed generators", ["npx ignite-cli --list"])
77 command(
78 "--update",
79 "Update installed generators. You can also use the 'npx ignite-cli update X' format",
80 [
81 "npx ignite-cli --update",
82 `npx ignite-cli model --update`,
83 `npx ignite-cli update model`,
84 `npx ignite-cli update --all`,
85 ],
86 )
87 warning(" ⚠️ this erases any customizations you've made!")
88 p()
89 heading("Options")
90 p()
91 command("--dir", "Override front matter or default path for generated files", [
92 "npx ignite-cli g model Episodes --dir src/context",
93 ])
94 command("--case", "Formats the generated filename", [
95 "npx ignite-cli g model episode --case=auto",
96 "npx ignite-cli g model episode --case=pascal",
97 "npx ignite-cli g model episode --case=kebab",
98 "npx ignite-cli g model episode --case=snake",
99 "npx ignite-cli g model episode --case=none",
100 ])
101 p()
102 heading("Installed generators")
103 p()
104 showGenerators()
105}
106
107function showGenerators() {
108 if (!isIgniteProject()) {

Callers 3

update.tsFile · 0.90
help.tsFile · 0.90
runGeneratorFunction · 0.85

Calls 6

igniteHeadingFunction · 0.90
headingFunction · 0.90
pFunction · 0.90
commandFunction · 0.90
warningFunction · 0.90
showGeneratorsFunction · 0.85

Tested by

no test coverage detected