diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-10 16:42:31 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-10 16:42:31 +0800 |
| commit | a8c8d50b6c59b103da7fd4bbb5e7ca3ff7b2f49a (patch) | |
| tree | 5e2805953c58740a7058fe809174e68cf3a4937b /docs/dev/pages/issues/the-shit-time.md | |
| parent | 032fe9a3a621511977892d719e020113d45232ae (diff) | |
docs: fix trailing whitespace in markdown files
Diffstat (limited to 'docs/dev/pages/issues/the-shit-time.md')
| -rw-r--r-- | docs/dev/pages/issues/the-shit-time.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/dev/pages/issues/the-shit-time.md b/docs/dev/pages/issues/the-shit-time.md index f524f42..9d6c429 100644 --- a/docs/dev/pages/issues/the-shit-time.md +++ b/docs/dev/pages/issues/the-shit-time.md @@ -83,6 +83,16 @@ fn desc_add() -> String { t!("cmd.add.desc") } +// Or + +#[completion(CMDAdd)] +fn desc_add(_ctx: &ShellContext) -> Suggest { + // If using rust_i18n + suggest{ + t!("cmd.add.desc") + } +} + // Collected and generated by `gen_program!()` // Generate something like get_dispatcher_desc(id: &ThisProgram) -> String // Match the corresponding function using enum values inside ThisProgram |
