Skip to content

Commit 1e5add4

Browse files
authored
fix: fix completions i18n translation on fish shell (#582)
1 parent 04b5aa5 commit 1e5add4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ pub struct GlobalOptions {
159159
}
160160

161161
fn main() {
162-
// 补全
163-
CompleteEnv::with_factory(OhManagerAilurus::command)
164-
.completer("oma")
165-
.complete();
166-
167162
// 使系统错误使用系统 locale 语言输出
168163
unsafe {
169164
let s = CString::new("").unwrap();
@@ -173,6 +168,11 @@ fn main() {
173168
init_clap_rich_formatter_localizer();
174169
init_localizer();
175170

171+
// 补全
172+
CompleteEnv::with_factory(OhManagerAilurus::command)
173+
.completer("oma")
174+
.complete();
175+
176176
ctrlc::set_handler(single_handler).expect("oma could not initialize SIGINT handler.");
177177

178178
// 要适配额外的插件子命令,所以这里要保留 matches

0 commit comments

Comments
 (0)