diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-31 02:43:06 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-31 02:43:06 +0200 |
| commit | 02f27943c7a72e94f28b7829d08d2f5e4dac2d95 (patch) | |
| tree | fa7ee85e72034a3f39037ab71fabb29c18b4ebb0 | |
| parent | bump: 0.1.0 → 0.2.0 — working interrupt handling (diff) | |
| download | rs-dos-02f27943c7a72e94f28b7829d08d2f5e4dac2d95.tar.gz rs-dos-02f27943c7a72e94f28b7829d08d2f5e4dac2d95.zip | |
auto-version all strings from Cargo.toml via env!("CARGO_PKG_VERSION")
| -rw-r--r-- | src/shell.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shell.rs b/src/shell.rs index 2f8b8f7..8e4cb62 100644 --- a/src/shell.rs +++ b/src/shell.rs | |||
| @@ -7,8 +7,8 @@ const LINE_BUF_SIZE: usize = 256; | |||
| 7 | 7 | ||
| 8 | /// Run the shell forever. | 8 | /// Run the shell forever. |
| 9 | pub fn run() -> ! { | 9 | pub fn run() -> ! { |
| 10 | gop_println!("raisernics v0.2 — type 'help' for commands"); | 10 | gop_println!("raisernics v{} — type 'help' for commands", env!("CARGO_PKG_VERSION")); |
| 11 | serial_println!("========== raisernics v0.2 =========="); | 11 | serial_println!("========== raisernics v{} ==========", env!("CARGO_PKG_VERSION")); |
| 12 | 12 | ||
| 13 | loop { | 13 | loop { |
| 14 | // Print prompt | 14 | // Print prompt |
| @@ -125,7 +125,8 @@ fn cmd_clear() { | |||
| 125 | 125 | ||
| 126 | fn cmd_info() { | 126 | fn cmd_info() { |
| 127 | // Test that the global allocator works: build a String on the heap | 127 | // Test that the global allocator works: build a String on the heap |
| 128 | let mut s = alloc::string::String::from("raisernics v0.2"); | 128 | let mut s = alloc::string::String::from("raisernics v"); |
| 129 | s.push_str(env!("CARGO_PKG_VERSION")); | ||
| 129 | s.push_str(" — RNG custom kernel"); | 130 | s.push_str(" — RNG custom kernel"); |
| 130 | gop_println!("{}", s); | 131 | gop_println!("{}", s); |
| 131 | gop_println!("arch: x86_64, freestanding, no userspace"); | 132 | gop_println!("arch: x86_64, freestanding, no userspace"); |
