imperative icon indicating copy to clipboard operation
imperative copied to clipboard

Allow ImperativeConfig properties to be accessed before Imperative has been initialized

Open ghost opened this issue 5 years ago • 1 comments

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.

ghost avatar Jan 21 '20 13:01 ghost

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.

mheuzey avatar Apr 16 '20 20:04 mheuzey

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.

JTonda avatar Apr 12 '23 15:04 JTonda