mirror of
https://github.com/vvsviridov/enm-cli.git
synced 2025-10-23 00:12:23 +00:00
12 lines
342 B
JavaScript
Executable File
12 lines
342 B
JavaScript
Executable File
function setAttribute(attribute) {
|
|
if (!this.attributes) return false
|
|
if (!this.attributes.find(item => item.key === attribute)) return false
|
|
if (!this.attribute) {
|
|
['get', 'set', 'description'].forEach(cmd => this.configCommands.push(cmd))
|
|
}
|
|
this.attribute = attribute
|
|
return true
|
|
}
|
|
|
|
|
|
module.exports = setAttribute |