cmd: rename test-vet to test-cleancode
parent
9cf5a31faf
commit
4559b4138f
.github/workflows
cmd
tools
v
|
@ -21,8 +21,8 @@ jobs:
|
||||||
run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF
|
run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF
|
||||||
- name: Build local v
|
- name: Build local v
|
||||||
run: make -j4
|
run: make -j4
|
||||||
- name: v test-vet
|
- name: v test-cleancode
|
||||||
run: ./v -silent test-vet
|
run: ./v -silent test-cleancode
|
||||||
- name: v test-fmt
|
- name: v test-fmt
|
||||||
run: ./v -silent test-fmt
|
run: ./v -silent test-fmt
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ const (
|
||||||
fn main() {
|
fn main() {
|
||||||
args := os.args
|
args := os.args
|
||||||
args_string := args[1..].join(' ')
|
args_string := args[1..].join(' ')
|
||||||
pass_args := args_string.all_before('test-vet')
|
pass_args := args_string.all_before('test-cleancode')
|
||||||
v_test_vetting(pass_args)
|
v_test_vetting(pass_args)
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ const (
|
||||||
simple_cmd = [
|
simple_cmd = [
|
||||||
'fmt', 'up', 'vet',
|
'fmt', 'up', 'vet',
|
||||||
'self', 'tracev', 'symlink', 'bin2v',
|
'self', 'tracev', 'symlink', 'bin2v',
|
||||||
'test', 'test-fmt', 'test-compiler', 'test-fixed', 'test-vet',
|
'test', 'test-fmt', 'test-compiler', 'test-fixed', 'test-cleancode',
|
||||||
'repl',
|
'repl',
|
||||||
'build-tools', 'build-examples',
|
'build-tools', 'build-examples',
|
||||||
'build-vbinaries',
|
'build-vbinaries',
|
||||||
|
@ -41,6 +41,10 @@ fn main() {
|
||||||
// println('prefs= ')
|
// println('prefs= ')
|
||||||
// println(prefs) // QTODO
|
// println(prefs) // QTODO
|
||||||
}
|
}
|
||||||
|
if command == 'test-vet' {
|
||||||
|
println('Please use `v test-cleancode` instead.')
|
||||||
|
return
|
||||||
|
}
|
||||||
// Start calling the correct functions/external tools
|
// Start calling the correct functions/external tools
|
||||||
// Note for future contributors: Please add new subcommands in the `match` block below.
|
// Note for future contributors: Please add new subcommands in the `match` block below.
|
||||||
if command in simple_cmd {
|
if command in simple_cmd {
|
||||||
|
|
Loading…
Reference in New Issue