Skip to content

Commit

Permalink
use cargo styles
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Oct 4, 2024
1 parent f8a9454 commit ad1b43b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cmd/soroban-cli/src/commands/global.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
use clap::{
arg,
builder::styling::{AnsiColor, Styles},
builder::styling::{AnsiColor, Effects, Styles},
};
use std::path::PathBuf;

use super::config;

const USAGE_STYLES: Styles = Styles::styled()
.header(AnsiColor::Yellow.on_default())
.usage(AnsiColor::Green.on_default())
.literal(AnsiColor::Green.on_default())
.placeholder(AnsiColor::Green.on_default());
.header(AnsiColor::Green.on_default().effects(Effects::BOLD))
.usage(AnsiColor::Green.on_default().effects(Effects::BOLD))
.literal(AnsiColor::Cyan.on_default().effects(Effects::BOLD))
.placeholder(AnsiColor::Cyan.on_default().effects(Effects::BOLD))
.error(AnsiColor::Red.on_default().effects(Effects::BOLD))
.valid(AnsiColor::Cyan.on_default().effects(Effects::BOLD))
.invalid(AnsiColor::Yellow.on_default().effects(Effects::BOLD));

#[derive(Debug, clap::Args, Clone, Default)]
#[group(skip)]
Expand Down

0 comments on commit ad1b43b

Please sign in to comment.