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

tools: add bump flags to vcomplete (#14813)

This commit is contained in:
Larpon 2022-06-21 14:11:42 +02:00 committed by GitHub
parent c160ba2a8d
commit 9f5e442dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,6 +263,11 @@ const (
'--verify', '--verify',
'--diff', '--diff',
] ]
auto_complete_flags_bump = [
'--patch',
'--minor',
'--major',
]
auto_complete_flags_self = [ auto_complete_flags_self = [
'-prod', '-prod',
] ]
@ -429,6 +434,9 @@ fn auto_complete_request(args []string) []string {
'missdoc' { // 'v missdoc -<tab>' -> flags. 'missdoc' { // 'v missdoc -<tab>' -> flags.
list = get_flags(auto_complete_flags_missdoc, part) list = get_flags(auto_complete_flags_missdoc, part)
} }
'bump' { // 'v bump -<tab>' -> flags.
list = get_flags(auto_complete_flags_bump, part)
}
else { else {
for flag in auto_complete_flags { for flag in auto_complete_flags {
if flag == part { if flag == part {