1- // Fire-CLI || Github: https://github.com/horizonwiki/fire || v0.1.2 || 10.04. 2026
1+ // Fire-CLI || Github: https://github.com/horizonwiki/fire || v0.1.3 || 2026-04-13
22use std:: { env, io} ;
33
44mod terminal;
@@ -12,6 +12,7 @@ use terminal::Terminal;
1212use theme:: { Theme , ColorMode } ;
1313use help:: print_help;
1414use renderer:: run_main_loop;
15+ use fire_cli:: { VERSION , BUILD_DATE } ;
1516
1617fn main ( ) -> io:: Result < ( ) > {
1718 let args: Vec < String > = env:: args ( ) . collect ( ) ;
@@ -30,25 +31,30 @@ fn main() -> io::Result<()> {
3031 let theme_arg = args[ i + 1 ] . to_lowercase ( ) ;
3132 let theme_str = theme_arg. as_str ( ) ;
3233 match theme_str {
33- "std" => theme = Theme :: std ( ) ,
34- "ice" => theme = Theme :: ice ( ) ,
35- "classic" => theme = Theme :: classic ( ) ,
36- "pink" => theme = Theme :: pink ( ) ,
34+ "ash" => theme = Theme :: ash ( ) ,
35+ "aurora" => theme = Theme :: aurora ( ) ,
3736 "blue" => theme = Theme :: blue ( ) ,
38- "forest" => theme = Theme :: forest ( ) ,
39- "magma" => theme = Theme :: magma ( ) ,
40- "solar" => theme = Theme :: solar ( ) ,
41- "plasma" => theme = Theme :: plasma ( ) ,
42- "sulfur" => theme = Theme :: sulfur ( ) ,
43- "emerald" => theme = Theme :: emerald ( ) ,
37+ "classic" => theme = Theme :: classic ( ) ,
38+ "copper" => theme = Theme :: copper ( ) ,
4439 "crimson" => theme = Theme :: crimson ( ) ,
40+ "dusk" => theme = Theme :: dusk ( ) ,
41+ "ember" => theme = Theme :: ember ( ) ,
42+ "emerald" => theme = Theme :: emerald ( ) ,
43+ "forest" => theme = Theme :: forest ( ) ,
44+ "frost" => theme = Theme :: frost ( ) ,
4545 "ghost" => theme = Theme :: ghost ( ) ,
4646 "gold" => theme = Theme :: gold ( ) ,
47- "ash " => theme = Theme :: ash ( ) ,
48- "copper " => theme = Theme :: copper ( ) ,
47+ "ice " => theme = Theme :: ice ( ) ,
48+ "magma " => theme = Theme :: magma ( ) ,
4949 "nebula" => theme = Theme :: nebula ( ) ,
50- "ember" => theme = Theme :: ember ( ) ,
50+ "pink" => theme = Theme :: pink ( ) ,
51+ "plasma" => theme = Theme :: plasma ( ) ,
5152 "rainbow" => color_mode = ColorMode :: Rainbow ,
53+ "sakura" => theme = Theme :: sakura ( ) ,
54+ "solar" => theme = Theme :: solar ( ) ,
55+ "std" => theme = Theme :: std ( ) ,
56+ "sulfur" => theme = Theme :: sulfur ( ) ,
57+
5258 "custom" => {
5359 eprintln ! ( "Missing colors after 'custom:'. Example: -t custom:#ff0055.#ffcc00.#ffffff" ) ;
5460 print_help ( program_name) ;
@@ -99,6 +105,15 @@ fn main() -> io::Result<()> {
99105 print_help ( program_name) ;
100106 return Ok ( ( ) ) ;
101107 }
108+ "-v" | "--version" => {
109+ println ! ( "fire-cli v{} ({}-{}) built {}" ,
110+ VERSION ,
111+ std:: env:: consts:: ARCH ,
112+ std:: env:: consts:: OS ,
113+ BUILD_DATE
114+ ) ;
115+ return Ok ( ( ) ) ;
116+ }
102117 _ => {
103118 eprintln ! ( "Invalid option: {}" , args[ i] ) ;
104119 print_help ( program_name) ;
0 commit comments