zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
114 stars 86 forks source link

Add default behavior for user/global layer lookup #2247

Open zFernand0 opened 2 months ago

zFernand0 commented 2 months ago

Many IConfig.api.layer methods perform operations based on the specified layer.

It'd be nice to have some default behavior based on Trae's comment below 🙏🏽


Curious to get your thoughts on making user and global optional? We can fallback to false if the property is not provided, but this would allow a developer to call secureFieldsWithDetails without having to specify both user and global:

profileInfo.secureFieldsWithDetails({ user: true }); // project user config
// or...
profileInfo.secureFieldsWithDetails({ global: true }); // global, non-user config

_Originally posted by @traeok in https://github.com/zowe/zowe-cli/pull/2241#discussion_r1733005105_

github-actions[bot] commented 1 month ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.