updated some documentation
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user