CliFx v1.1 Release Notes
Release Date: 2020-03-16 // about 4 years ago-
- ⚡️ Changed
IConsole
interface (and as a result,SystemConsole
andVirtualConsole
) to support writing binary data. Instead ofTextReader
/TextWriter
instances, the streams are now exposed asStreamReader
/StreamWriter
which provide theBaseStream
property that allows raw access. Existing usages inside commands should remain the same becauseStreamReader
/StreamWriter
are compatible with their base classesTextReader
/TextWriter
, but if you were usingVirtualConsole
in tests, you may have to update it to the new API. Refer to the readme for more info. - 🔄 Changed argument binding behavior so that an error is produced if the user provides an argument that doesn't match with any parameter or option. This is done in order to improve user experience, as otherwise the user may make a typo without knowing that their input wasn't taken into account.
- 🔄 Changed argument binding behavior so that options can be set to multiple argument values while specifying them with mixed naming. For example,
--option value1 -o value2 --option value3
would result in the option being set to corresponding three values, assuming--option
and-o
match with the same option.
- ⚡️ Changed