Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "devtrail-cli"
version = "1.0.1"
version = "1.0.2"
edition = "2021"
description = "CLI tool for DevTrail - Documentation Governance for AI-Assisted Development"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions cli/src/commands/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn run() -> Result<()> {
println!(
" {} {}",
"DevTrail CLI".bold(),
format!("v{version}").dimmed()
format!("cli-{version}").dimmed()
);

// Show framework version if installed
Expand All @@ -25,7 +25,7 @@ pub fn run() -> Result<()> {
println!(
" {} {}",
"Framework:".dimmed(),
format!("v{}", manifest.version).dimmed()
format!("fw-{}", manifest.version).dimmed()
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions cli/src/commands/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ pub fn run(path: &str) -> Result<()> {
println!();
println!("{}", "DevTrail Status".bold());
println!(" {} {}", "Path:".dimmed(), target.display());
println!(" {} {}", "Framework:".dimmed(), version);
println!(" {} {}", "CLI:".dimmed(), cli_version);
println!(" {} fw-{}", "Framework:".dimmed(), version);
println!(" {} cli-{}", "CLI:".dimmed(), cli_version);
println!(" {} {}", "Language:".dimmed(), language);

// Phase 2: Structure check
Expand Down
2 changes: 1 addition & 1 deletion cli/src/commands/update_framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn run() -> Result<()> {
println!(
" {} {}",
"Latest version:".dimmed(),
display_version.green()
release.tag_name.green()
);

// Compare versions — skip if already up to date
Expand Down
14 changes: 7 additions & 7 deletions cli/src/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ use crate::utils;
/// Perform the CLI self-update
pub fn perform_update() -> Result<()> {
let current_version = env!("CARGO_PKG_VERSION");
utils::info(&format!("Current CLI version: v{}", current_version));
utils::info(&format!("Current version: cli-{}", current_version));

// Fetch latest release
utils::info("Checking for updates...");
let release = download::get_latest_release_full()?;
let tag_version = download::strip_tag_prefix(&release.tag_name);

println!(
" {} v{}",
"Latest release:".dimmed(),
tag_version.green()
" {} {}",
"Latest version:".dimmed(),
release.tag_name.green()
);

// Compare versions
Expand All @@ -30,7 +30,7 @@ pub fn perform_update() -> Result<()> {

if latest <= current {
utils::success(&format!(
"CLI is already at the latest version (v{})",
"CLI is already at the latest version (cli-{})",
current_version
));
return Ok(());
Expand All @@ -48,7 +48,7 @@ pub fn perform_update() -> Result<()> {
.find(|a| a.name == expected_name)
.ok_or_else(|| {
anyhow::anyhow!(
"No CLI binary found for {} in release v{}",
"No CLI binary found for {} in release cli-{}",
target,
tag_version
)
Expand Down Expand Up @@ -82,7 +82,7 @@ pub fn perform_update() -> Result<()> {

replace_binary(&extracted_binary, &current_exe)?;

utils::success(&format!("CLI updated to v{}!", tag_version));
utils::success(&format!("CLI updated to cli-{}!", tag_version));

#[cfg(windows)]
println!(
Expand Down