imperative
imperative copied to clipboard
Allow ImperativeConfig properties to be accessed before Imperative has been initialized
Currently, some properties of the ImperativeConfig
class like cliHome
cannot be accessed until Imperative.init
has been called. These properties should be accessible without needing to wait to initialize the Imperative command tree.
If this change goes through, these properties could be used to create default values for some functions. For example, most people probably leave their profiles in the default directory, so CliProfileManager
could use path.join(ImperativeConfig.instance.cliHome, "profiles")
as a default value for profileRootDirectory
. Then you would only need to specify the profile type when calling the constructor.
This enhancement has had no activity for 12 months. The issue also has less than 5 up-votes by the community. No action on this enhancement is targeted for the next 2 calendar quarters. Therefore, this enhancement is being closed. If you feel that this enhancement should continue to be available for community up-votes, you may reopen this issue.