Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
add friendly message when users include -screen suffix (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvangelder authored Oct 30, 2018
1 parent 65b45dc commit 4a984c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ module.exports = async function (context) {

const name = parameters.first
const screenName = name.endsWith('-screen') ? name : `${name}-screen`
if (name.endsWith('-screen')) {
print.info(`Note: For future reference, the \`-screen\` suffix is automatically added for you.`)
print.info(`You're welcome to add it manually, but we wanted you to know you don't have to. :)`)
}
const pascalName = pascalCase(name)
const camelName = camelCase(name)
const newDomain = isBlank(domainPath)
Expand Down

0 comments on commit 4a984c9

Please sign in to comment.