Files
enm-cli/lib/applications/TopologyBrowser/commands/setAttribute.js
Vyacheslav.Sviridov fc41ae955f first alpha
2022-06-09 20:52:09 +06:00

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