We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fish
1 parent 04b5aa5 commit 1e5add4Copy full SHA for 1e5add4
src/main.rs
@@ -159,11 +159,6 @@ pub struct GlobalOptions {
159
}
160
161
fn main() {
162
- // 补全
163
- CompleteEnv::with_factory(OhManagerAilurus::command)
164
- .completer("oma")
165
- .complete();
166
-
167
// 使系统错误使用系统 locale 语言输出
168
unsafe {
169
let s = CString::new("").unwrap();
@@ -173,6 +168,11 @@ fn main() {
173
init_clap_rich_formatter_localizer();
174
init_localizer();
175
170
171
+ // 补全
172
+ CompleteEnv::with_factory(OhManagerAilurus::command)
+ .completer("oma")
+ .complete();
+
176
ctrlc::set_handler(single_handler).expect("oma could not initialize SIGINT handler.");
177
178
// 要适配额外的插件子命令,所以这里要保留 matches
0 commit comments