Skip to content

Commit

Permalink
use new colors for the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiori44 committed Dec 26, 2023
1 parent 2c308f7 commit b815fcc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#![allow(clippy::blocks_in_if_conditions)]

use clap::{crate_version, Parser, ValueEnum, builder::ArgPredicate};
use clap::{
crate_version,
Parser,
ValueEnum,
builder::{ArgPredicate, Styles, styling::{AnsiColor, Effects}}
};
use clue_core::{
check,
compiler::*,
Expand All @@ -27,6 +32,14 @@ enum ColorMode {
#[derive(Parser)]
#[clap(
version,
styles = Styles::plain()
.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())
.error(AnsiColor::Red.on_default().effects(Effects::BOLD))
.valid(AnsiColor::Cyan.on_default().effects(Effects::BOLD))
.invalid(AnsiColor::Yellow.on_default().effects(Effects::BOLD)),
about = "C/Rust like programming language that compiles into Lua code\nMade by Felicia.iso\nhttps://github.com/ClueLang/Clue",
)]
struct Cli {
Expand Down

0 comments on commit b815fcc

Please sign in to comment.