Skip to content

Commit

Permalink
refactor: rename colour to color in parity_scale_cli
Browse files Browse the repository at this point in the history
Signed-off-by: aplio <[email protected]>
  • Loading branch information
aplio authored and nxsaken committed Jun 4, 2024
1 parent 042a132 commit 8bef619
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/parity_scale_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ struct ScaleJsonArgs {
type_name: String,
}

fn is_colouring_supported() -> bool {
fn is_coloring_supported() -> bool {
supports_color::on(supports_color::Stream::Stdout).is_some()
}

fn default_terminal_colors_str() -> clap::builder::OsStr {
is_colouring_supported().to_string().into()
is_coloring_supported().to_string().into()
}

fn main() -> Result<()> {
Expand Down Expand Up @@ -423,7 +423,7 @@ mod tests {

assert_eq!(
Args::try_parse_from(["test", "list-types"])?.terminal_colors,
is_colouring_supported()
is_coloring_supported()
);
assert_eq!(try_with("--terminal-colors")?, true);
assert_eq!(try_with("--terminal-colors=false")?, false);
Expand Down

0 comments on commit 8bef619

Please sign in to comment.