mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Update the examples link in commands
Updated the link of navi's cheatsheet in welcome.rs Updated the link of the cheatsheet example and the configuration example in src/commands/info.rs Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
This commit is contained in:
parent
8b473ccdfe
commit
64a9c0bf01
2 changed files with 3 additions and 3 deletions
|
|
@ -23,10 +23,10 @@ impl Runnable for Input {
|
|||
let info = &self.info;
|
||||
|
||||
match info {
|
||||
Info::CheatsExample => println!("{}", include_str!("../../docs/cheat_example.cheat")),
|
||||
Info::CheatsExample => println!("{}", include_str!("../../docs/examples/cheatsheet/example.cheat")),
|
||||
Info::CheatsPath => println!("{}", &filesystem::default_cheat_pathbuf()?.to_string()),
|
||||
Info::ConfigPath => println!("{}", &filesystem::default_config_pathbuf()?.to_string()),
|
||||
Info::ConfigExample => println!("{}", include_str!("../../docs/config_file_example.yaml")),
|
||||
Info::ConfigExample => println!("{}", include_str!("../../docs/examples/configuration/config-example.yaml")),
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use crate::prelude::*;
|
|||
use crate::structures::fetcher;
|
||||
|
||||
pub fn populate_cheatsheet(parser: &mut Parser) -> Result<()> {
|
||||
let cheatsheet = include_str!("../docs/navi.cheat");
|
||||
let cheatsheet = include_str!("../docs/examples/cheatsheet/navi.cheat");
|
||||
let lines = cheatsheet.split('\n').map(|s| Ok(s.to_string()));
|
||||
|
||||
parser.read_lines(lines, "welcome", None)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue