Merge pull request #109 from Heliozoa/main

Updated links in help messages
This commit is contained in:
Ryan Haskell-Glatz 2021-09-06 13:11:16 -05:00 committed by GitHub
commit 50e6c9d372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const example = ' ' + `
${bold(`elm-spa ${cyan(`add`)}`)} ${yellow('/about-us')} ${pink('sandbox')} ${bold(`elm-spa ${cyan(`add`)}`)} ${yellow('/about-us')} ${pink('sandbox')}
${bold(`elm-spa ${cyan(`add`)}`)} ${yellow('/people/:id')} ${pink('element')} ${bold(`elm-spa ${cyan(`add`)}`)} ${yellow('/people/:id')} ${pink('element')}
Visit ${green(`https://elm-spa.dev/guide/cli`)} for more details! Visit ${green(`https://elm-spa.dev/guide/01-cli`)} for more details!
`.trim() `.trim()
const template404 = (url : string, template : string, suggestions: string[]) => { const template404 = (url : string, template : string, suggestions: string[]) => {
@ -65,6 +65,6 @@ const template404 = (url : string, template : string, suggestions: string[]) =>
${bold(`elm-spa`)} couldn't find a ${bold(pink(template))} template ${bold(`elm-spa`)} couldn't find a ${bold(pink(template))} template
in the ${cyan('.elm-spa/templates')} folder. in the ${cyan('.elm-spa/templates')} folder.
${suggestions.length ? suggest : ''} ${suggestions.length ? suggest : ''}
Visit ${green(`https://elm-spa.dev/guide/cli`)} for more details! Visit ${green(`https://elm-spa.dev/guide/01-cli`)} for more details!
`.trim()} `.trim()}

View File

@ -98,7 +98,7 @@ const invalidExportsMessage = (entry: PageEntry) => {
` ${dot} module ${moduleName} exposing (${cyan('page')})`, ` ${dot} module ${moduleName} exposing (${cyan('page')})`,
` ${dot} module ${moduleName} exposing (${cyan('Model')}, ${cyan('Msg')}, ${cyan('page')})`, ` ${dot} module ${moduleName} exposing (${cyan('Model')}, ${cyan('Msg')}, ${cyan('page')})`,
``, ``,
`Visit ${colors.green}https://elm-spa.dev/guide/pages${reset} for more details!` `Visit ${colors.green}https://elm-spa.dev/guide/03-pages${reset} for more details!`
].join('\n') ].join('\n')
} }