Change pattern raise.info message to use new data property config.
This commit is contained in:
parent
6d5bf28bab
commit
9cf8ffb31c
1 changed files with 3 additions and 1 deletions
|
@ -73,8 +73,10 @@ export function Pattern(config = { options: {} }) {
|
|||
}
|
||||
|
||||
// Say hi
|
||||
const name = config?.data?.name || 'No Name'
|
||||
const patversion = config?.data?.version || 'No Version'
|
||||
this.raise.info(
|
||||
`New \`@freesewing/${config.name}:${config.version}\` pattern using \`@freesewing/core:${version}\``
|
||||
`New \`${name}:${patversion}\` pattern using \`@freesewing/core:${version}\``
|
||||
)
|
||||
|
||||
// More things that go in a pattern
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue