Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: command auto-completion #335

Merged
merged 23 commits into from
Jul 16, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f776b1b
table dump print pretty result
Teingi Jul 11, 2024
a9de68c
Merge branch '2.3.0_bug_fix' of github.com:Teingi/obdiag into 2.3.0_b…
Teingi Jul 11, 2024
27a7cad
Merge branch 'oceanbase:master' into 2.3.0_bug_fix
Teingi Jul 11, 2024
d77000a
Fix regression testing bugs
Teingi Jul 12, 2024
c46510a
Fix regression testing bugs
Teingi Jul 12, 2024
b62132f
Optimize logs
Teingi Jul 12, 2024
6228ba3
Optimize logs
Teingi Jul 12, 2024
6b286e4
Optimize logs
Teingi Jul 12, 2024
fffab14
Merge remote-tracking branch 'origin/master' into 2.3.0_bug_fix
Teingi Jul 15, 2024
615f04d
fix: gather tabledump
Teingi Jul 15, 2024
38f0b69
fix: gather tabledump
Teingi Jul 15, 2024
cdc8d26
Merge branch 'oceanbase:master' into 2.3.0_bug_fix
Teingi Jul 15, 2024
04e3187
Merge remote-tracking branch 'origin/master' into 2.3.0_bug_fix
Teingi Jul 16, 2024
832e27a
fix analyze flt_trace offline
Teingi Jul 16, 2024
a84bc71
Merge branch '2.3.0_bug_fix' of github.com:Teingi/obdiag into 2.3.0_b…
Teingi Jul 16, 2024
a0d7e2b
Merge branch 'oceanbase:master' into 2.3.0_bug_fix
Teingi Jul 16, 2024
2cb2a64
remove duplicate code & optimize log
Teingi Jul 16, 2024
44d000b
remove duplicate code & optimize log
Teingi Jul 16, 2024
502b1eb
Merge remote-tracking branch 'origin/master' into 2.3.0_bug_fix
Teingi Jul 16, 2024
67fd60d
fix: command auto-completion
Teingi Jul 16, 2024
848e902
fix: command auto-completion
Teingi Jul 16, 2024
845fca6
Merge remote-tracking branch 'origin/master' into 2.3.0_bug_fix
Teingi Jul 16, 2024
d836af6
fix: command auto-completion
Teingi Jul 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions init_obdiag_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ _obdiag_completion() {
if [ "$COMP_CWORD" -eq 2 ]; then
type_list="log flt_trace sql sql_review parameter variable"
elif [ "${COMP_WORDS[2]}" = "parameter" ] && [ "$COMP_CWORD" -eq 3 ]; then
type_list="diff non-default"
type_list="diff default"
elif [ "${COMP_WORDS[2]}" = "variable" ] && [ "$COMP_CWORD" -eq 3 ]; then
type_list="diff"
fi
;;
rca)
Expand All @@ -38,7 +40,10 @@ _obdiag_completion() {
type_list="list run"
COMPREPLY=($(compgen -W "${type_list}" -- "${cur_word}"))
elif [ "${COMP_WORDS[1]}" = "analyze" ] && [ "${COMP_WORDS[2]}" = "parameter" ]; then
type_list="diff non-default"
type_list="diff default"
COMPREPLY=($(compgen -W "${type_list}" -- "${cur_word}"))
elif [ "${COMP_WORDS[1]}" = "analyze" ] && [ "${COMP_WORDS[2]}" = "variable" ]; then
type_list="diff"
COMPREPLY=($(compgen -W "${type_list}" -- "${cur_word}"))
fi
;;
Expand Down
Loading