#@ Generic Help
# call shell with disabled builtin plugins to prevent them from interfering with the output
testutil.call_mysqlsh(["--disable-builtin-plugins", "--interactive=full", "--py", "--execute", "\\?"], "", ["MYSQLSH_TERM_COLOR_MODE=nocolor"])

#@ Generic Help - plugins plugin
\?

#@ Help Contents
\? contents

#@ Generic Help in SQL mode
\sql
\?

#@ Help Contents in SQL mode
\? contents
\py

#@ Help on Admin API Category
\? adminapi

#@ Help on shell commands
\? shell commands

#@ Help on ShellAPI Category
\? shellapi

#@ Help on X DevAPI Category
\? x devapi

#@ Help on unknown topic
\? unknown

#@ Help on topic with several matches
\? session

#@ Help for sandbox operations
\? *sandbox*

#@ Help for SQL, with classic session, multiple matches
shell.connect(__mysqluripwd)
\? select

#@ Switching to SQL mode, same test gives results
\sql
\? select

#@ Switching back to Python, help for SQL Syntax
\py
\? SQL Syntax
session.close()

#@ Help for SQL Syntax, with x session
shell.connect(__uripwd)
\? SQL Syntax
session.close()

#@ Help for SQL Syntax, no connection
\? SQL Syntax

#@ Help for API Command Line Integration
\? cmdline

#@ Help for API Command Line Integration (full name) [USE: Help for API Command Line Integration]
\? command line
