command: 'ver' alias for 'version'
Massimo Melina committed
Jan 11, 2025 at 11:43 UTC
eb342d160cf79b461cbdab11dfd711fd642bdc04
1 file changed
+2
-5
src/commands.ts
+2
-5
@@ -48,9 +48,7 @@ function parseCommandLine(line: string) {
48
})
49
}
50
51
-const aliases: Dict<string> = {
52
- exit: 'quit',
53
-}
51
+const aliases: Dict<string> = { ver: 'version', exit: 'quit' }
52
53
const commands = {
54
help: {
@@ -121,8 +119,7 @@ const commands = {
119
version: {
120
params: '',
121
cb() {
124
- console.log(VERSION)
125
- console.log(BUILD_TIMESTAMP)
122
+ console.log(VERSION, 'build', BUILD_TIMESTAMP)
123
}
124
},
125
'start-plugin': {