You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/custom_search_commands.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,10 @@ python.version = python3
63
63
| requiredSearchAssistant | boolean | Specifies whether search assistance is required for the custom search command. Default: false. |
64
64
| usage | string | Defines the usage of custom search command. It can be one of `public`, `private` and `deprecated`. |
65
65
| description | string | Provide description of the custom search command. |
66
+
| shortdesc | string | A one sentence description of the search command, used for searchbnf.conf |
66
67
| syntax | string | Provide syntax for custom search command |
68
+
| tags | string | One or more words that users might type into the search bar which are similar to the command name. |
69
+
| examples | array[objects]| List of example search strings, used for searchbnf.conf |
67
70
68
71
To generate a custom search command, the following attributes must be defined in globalConfig: `commandName`, `commandType`, `fileName`, and `arguments`. Based on the provided commandType, UCC will generate a template Python file and integrate the user-defined logic into it.
| search<spanclass="required-asterisk">\*</span> | string | Example search command |
144
+
| comment<spanclass="required-asterisk">\*</span> | string | Provide description of the example search string |
145
+
146
+
Each search command can have multiple examples, which are shown displayed in the search assistant. The Compact mode, only shows the first example. In the Full mode, the top three examples are displayed.
0 commit comments