updated some documentation
This commit is contained in:
@@ -15,7 +15,7 @@ fn exec_command(command: &mut process::Command) -> Result<(), String> {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println!("{}", result.unwrap_err());
|
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 colored::Colorize;
|
||||||
|
|
||||||
use crate::app::fs_util;
|
|
||||||
|
|
||||||
use super::traits::Command;
|
use super::traits::Command;
|
||||||
|
|
||||||
pub struct Health;
|
pub struct Health;
|
||||||
@@ -22,7 +20,7 @@ const INFO_REVEAL: &str = "
|
|||||||
There are two options to install it:
|
There are two options to install it:
|
||||||
|
|
||||||
Option 1:
|
Option 1:
|
||||||
- run `docki reveal`
|
- run `docki install-reveal
|
||||||
|
|
||||||
Option 2:
|
Option 2:
|
||||||
- Install the binary from Github https://github.com/asciidoctor/asciidoctor-reveal.js/releases
|
- 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 {
|
fn check_command(command: &str) -> bool {
|
||||||
return match process::Command::new(command)
|
return match process::Command::new(command)
|
||||||
// .env("PATH", fs_util::docki_path_env())
|
|
||||||
.output() {
|
.output() {
|
||||||
Ok(_) => true,
|
Ok(_) => true,
|
||||||
Err(e) => ErrorKind::NotFound != e.kind()
|
Err(e) => ErrorKind::NotFound != e.kind()
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ impl CommandRegistry {
|
|||||||
let registry = self;
|
let registry = self;
|
||||||
registry.register("/build".to_string(), Box::new(Build::new()), true);
|
registry.register("/build".to_string(), Box::new(Build::new()), true);
|
||||||
registry.register("/health".to_string(), Box::new(Health::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