Skip to content

Commit 5402cca

Browse files
authored
v0.1.3
1 parent 6a43ef8 commit 5402cca

6 files changed

Lines changed: 178 additions & 113 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
[package]
22
name = "fire-cli"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2021"
5+
description = "Terminal fire animation written in Rust."
56
license = "Apache-2.0"
7+
readme = "README.md"
8+
homepage = "https://github.com/horizonwiki/fire"
69
repository = "https://github.com/horizonwiki/fire"
710
authors = ["horizonwiki"]
8-
keywords = ["terminal", "animation", "rust", "ascii", "fire", "visualization"]
11+
keywords = ["terminal", "animation", "rust", "ascii", "fire"]
12+
categories = ["command-line-utilities", "visualization"]
13+
14+
include = ["src/**", "Cargo.toml", "Cargo.lock", "README.md", "LICENSE"]
915

1016
[[bin]]
1117
name = "fire-cli"
1218
path = "src/main.rs"
1319

14-
[dependencies]
20+
[target.'cfg(unix)'.dependencies]
1521
libc = "0.2"
1622

1723
[target.'cfg(windows)'.dependencies]

src/help.rs

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,34 @@ Usage:
66
77
Options:
88
-f, --fps <number> - set FPS (default: 30, range: 15-120)
9-
-t, --theme <name> - set theme (default: std)
109
-n-c, --no-color - disable colors (ASCII only)
10+
-t, --theme <name> - set theme (default: std)
11+
-v, --version - show version info
1112
1213
Available themes:
13-
ash - monochrome smoke & gray fire
14-
blue - blue neon fire
15-
classic - alternative classic fire
16-
copper - turquoise copper-oxide flame
17-
crimson - aggressive crimson-red fire
18-
ember - glowing amber coals
19-
emerald - deep emerald chemical fire
20-
forest - mystical green fire
21-
ghost - ethereal violet magic flame
22-
gold - luxury metallic golden shimmer
23-
ice - ice fire
24-
magma - viscous glow of molten lava
25-
nebula - cosmic pink & blue fire
26-
pink - pink neon fire
27-
plasma - electric indigo plasma
28-
rainbow - multicolor spectrum fire
29-
solar - blinding white-hot solar flares
30-
std - classic fire
31-
sulfur - ghostly blue flame
14+
ash - monochrome smoke & gray fire
15+
aurora - shifting green-teal northern lights
16+
blue - blue neon fire
17+
classic - alternative classic fire
18+
copper - turquoise copper-oxide flame
19+
crimson - aggressive crimson-red fire
20+
dusk - warm orange-purple sunset fire
21+
ember - glowing amber coals
22+
emerald - deep emerald chemical fire
23+
forest - mystical green fire
24+
frost - cold blue-white icy fire
25+
ghost - ethereal violet magic flame
26+
gold - luxury metallic golden shimmer
27+
ice - ice fire
28+
magma - viscous glow of molten lava
29+
nebula - cosmic pink & blue fire
30+
pink - pink neon fire
31+
plasma - electric indigo plasma
32+
rainbow - multicolor spectrum fire
33+
sakura - soft pink cherry blossom fire
34+
solar - blinding white-hot solar flares
35+
std - classic fire
36+
sulfur - ghostly blue flame
3237
3338
custom - use a user-defined theme (see format below)
3439

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ pub mod theme;
33
pub mod simulation;
44
pub mod renderer;
55
pub mod input;
6-
pub mod help;
6+
pub mod help;
7+
8+
pub const VERSION: &str = "0.1.3";
9+
pub const BUILD_DATE: &str = "2026-04-13";

src/main.rs

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22
use std::{env, io};
33

44
mod terminal;
@@ -12,6 +12,7 @@ use terminal::Terminal;
1212
use theme::{Theme, ColorMode};
1313
use help::print_help;
1414
use renderer::run_main_loop;
15+
use fire_cli::{VERSION, BUILD_DATE};
1516

1617
fn 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

Comments
 (0)