1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: stage 1 of printing shortened commit on v --version

This commit is contained in:
Delyan Angelov
2019-09-10 23:08:48 +03:00
committed by Alexander Medvednikov
parent 03b3278369
commit 08262b5c43
3 changed files with 26 additions and 5 deletions

View File

@@ -51,8 +51,9 @@ fn (r mut Repl) function_call(line string) bool {
}
fn repl_help() {
versionhash := vhash()
println('
V $Version
V $Version $versionhash
help Displays this information.
Ctrl-C, Ctrl-D, exit Exits the REPL.
clear Clears the screen.
@@ -60,7 +61,8 @@ V $Version
}
fn run_repl() []string {
println('V $Version')
versionhash := vhash()
println('V $Version $versionhash')
println('Use Ctrl-C or `exit` to exit')
file := '.vrepl.v'
temp_file := '.vrepl_temp.v'