I have a command, that can connect to remote machines and so the completion should be based on which machine the user provided. That means that if the user pass -D DEVICE_ID
I want the completion to provide items for that specific machine.
I couldn't find a way to access the existing arguments in the argument function. For example I have a completion like so:
complete --command xxx --force-files --arguments "(__fish_complete_pids) (get_process_names)"
And I would like the get_process_names to get the processes from the correct machine using the provided flags.