Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit c21d4cb

Browse files
committed
Sort subcommands order
1 parent 371779b commit c21d4cb

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/kmdr.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,29 @@ class KMDR {
2222
.alias("e")
2323
.description("Explain a shell command")
2424
.action(this.explain);
25+
this.arg.command("feedback").alias("f").description("Send feedback :)").action(this.feedback);
26+
this.arg.command("info").description("Display system-wide information").action(this.info);
2527
this.arg.command("login [email]").alias("l").description("Log in to kmdr").action(this.login);
2628
this.arg.command("logout").description("Log out from kmdr").action(this.logout);
27-
this.arg
28-
.command("version")
29-
.alias("v")
30-
.description("Print current version and check for newer releases")
31-
.action(this.version);
32-
this.arg.command("feedback").alias("f").description("Send feedback :)").action(this.feedback);
3329
this.arg
3430
.command("settings")
3531
.alias("s")
3632
.description("Adjust options and preferences")
3733
.action(this.settings);
38-
this.arg.command("info").description("Display system-wide information").action(this.info);
34+
this.arg
35+
.command("version")
36+
.alias("v")
37+
.description("Print current version and check for newer releases")
38+
.action(this.version);
39+
3940
this.arg.parse(process.argv);
4041

4142
if (process.argv.length < 3) {
4243
this.arg.help();
4344
}
4445
}
4546

46-
private async explain(command: any, opt: any) {
47+
private async explain() {
4748
const explain = new Explain();
4849
await explain.init();
4950
}

0 commit comments

Comments
 (0)