diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-14 18:33:20 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-14 18:33:20 +0800 |
| commit | 17e7b28f162b3ed75683948144237ee17f81f7a5 (patch) | |
| tree | 9af1e089b517ba73f601b2ec9eacffbf0f6d2485 /src/systems | |
| parent | 707a1f7c747a08e2ce77df88edc1e72eae9cbebc (diff) | |
Add converter module and update documentation
Diffstat (limited to 'src/systems')
| -rw-r--r-- | src/systems/helpdoc.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/systems/helpdoc.rs b/src/systems/helpdoc.rs index c36130d..f863158 100644 --- a/src/systems/helpdoc.rs +++ b/src/systems/helpdoc.rs @@ -1,6 +1,8 @@ +use cli_utils::display::markdown::Markdown; + pub mod helpdoc_viewer; -pub const DEFAULT_HELPDOC: &str = "Welcome_To_JVCS"; +pub const DEFAULT_HELPDOC: &str = "commands"; helpdoc_system_macros::generate_helpdoc_mapping!(); helpdoc_system_macros::generate_helpdoc_list!(); @@ -18,3 +20,8 @@ pub fn get_helpdoc<'a>(doc_name: &'a str, lang: &'a str) -> &'a str { pub fn get_helpdoc_list<'a>() -> Vec<&'a str> { get_docs_list() } + +pub fn print_help_doc(doc_name: &str, lang: &str) { + let doc = get_helpdoc(doc_name, lang); + println!("{}", doc.markdown()); +} |
