shell
example:
files
CommandParameter has an extra component - dynamic_query_function
. This parameter points to a function that also lives within the same class, get_files
in this case. This function is a little different than the other functions in the Command file because it occurs before you even have a task - this is generating parameters for when a user does a popup in the user interface. As such, this function gets one parameter - a dictionary of information about the callback itself. It should return an array of strings that will be presented to the user.
create_tasking
, but except for one notable exception - you don’t have a task yet, so you have to do things based on the callback_id
. You won’t be able to create/delete entries via RPC calls, but you can still do pretty much every query capability. In this example, we’re doing a get_file
query to pull all files that exist within the current callback and present their filenames to the user.