diff --git a/src/app/builder/asciidoctor.rs b/src/app/builder/asciidoctor.rs index 961fa03..e18b680 100644 --- a/src/app/builder/asciidoctor.rs +++ b/src/app/builder/asciidoctor.rs @@ -15,7 +15,7 @@ fn exec_command(command: &mut process::Command) -> Result<(), String> { } } else { println!("{}", result.unwrap_err()); - return Err("asciidoctor not installed. You may need to run docki setup!".to_string()); + return Err("asciidoctor not installed. For more information run docki health!".to_string()); } } diff --git a/src/app/commands/health.rs b/src/app/commands/health.rs index 06beebe..b217698 100644 --- a/src/app/commands/health.rs +++ b/src/app/commands/health.rs @@ -2,8 +2,6 @@ use std::{collections::HashMap, process, io::ErrorKind}; use colored::Colorize; -use crate::app::fs_util; - use super::traits::Command; pub struct Health; @@ -22,7 +20,7 @@ const INFO_REVEAL: &str = " There are two options to install it: Option 1: -- run `docki reveal` +- run `docki install-reveal Option 2: - Install the binary from Github https://github.com/asciidoctor/asciidoctor-reveal.js/releases @@ -74,7 +72,6 @@ impl Health { fn check_command(command: &str) -> bool { return match process::Command::new(command) - // .env("PATH", fs_util::docki_path_env()) .output() { Ok(_) => true, Err(e) => ErrorKind::NotFound != e.kind() diff --git a/src/app/commands/mod.rs b/src/app/commands/mod.rs index 374fb1e..fc7951d 100644 --- a/src/app/commands/mod.rs +++ b/src/app/commands/mod.rs @@ -20,7 +20,7 @@ impl CommandRegistry { let registry = self; registry.register("/build".to_string(), Box::new(Build::new()), true); registry.register("/health".to_string(), Box::new(Health::new()), true); - registry.register("/reveal".to_string(), Box::new(Reveal::new()), true); + registry.register("/install-reveal".to_string(), Box::new(Reveal::new()), true); }