iroha icon indicating copy to clipboard operation
iroha copied to clipboard

Detect color support in `parity_scale_decoder`

Open dima74 opened this issue 1 year ago • 0 comments

Instead of feature-gating it, I would suggest following the same pattern that iroha (crate in /cli/) itself follows:

  • It detects colors support automatically via supports_color crate
  • User can override it by --terminal-colors=false/--terminal-colors=true flag

Originally posted by @0x009922 in https://github.com/hyperledger/iroha/pull/4486#discussion_r1572274579

dima74 avatar Apr 19 '24 13:04 dima74