You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check for message and warning properties of the config or distro definition. If found they are printed to the console.
A potential use case for this is if you wanted to change the uri of a config commonly used by users and scripts. If you just update the config to the new name, any uses of the old config would just break. This would let you copy the old config and update it to the new name, then add a warning message to the old config telling the user to switch to the new config.
Solution
{
"name": "not_set",
"warning": "not_set is deprecated, use the uri is_not_set instead.",
"context": [],
"inherits": false,
"distros": {
"maya2020": []
}
}
Adding the warning line to tests/configs/not_set/not_set.json would result in the WARNING line being added. This should be brightly colored if color is enabled.
$ hab dump not_set
Dump of FlatConfig('not_set')
--------------------------------------
WARNING: not_set is deprecated, use the uri is_not_set instead.
--------------------------------------
aliases: maya mayapy pip
--------------------------------------
If message is used, it would also be shown, but without the need to draw as much attention to itself. These would be shown for all uses of that uri, not just the dump command.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Description
Check for
message
andwarning
properties of the config or distro definition. If found they are printed to the console.A potential use case for this is if you wanted to change the uri of a config commonly used by users and scripts. If you just update the config to the new name, any uses of the old config would just break. This would let you copy the old config and update it to the new name, then add a warning message to the old config telling the user to switch to the new config.
Solution
Adding the warning line to tests/configs/not_set/not_set.json would result in the WARNING line being added. This should be brightly colored if color is enabled.
If message is used, it would also be shown, but without the need to draw as much attention to itself. These would be shown for all uses of that uri, not just the dump command.
Additional Context
No response
The text was updated successfully, but these errors were encountered: