Call plugin from command line
Call plugin from command line
Is there a way to call plugin from command line? Specifically, I want to call differ with two file names and let them open in cudatext and do a comparison. If cudatext is already open, I would like to use the existing window. Thanks.
-
- Posts: 2533
- Joined: 25.08.2021 18:15
Command line param:
-p=cuda_module#param1#param2... - Run the specified plugin, and pass to its "on_cli" event specified param strings. Count of params must be expected by plugin, e.g. Differ plugin supports "on_cli" and expects 2 filenames. If params contain spaces, you must double-quote the part of the command-line beginning with -p: "-p=......".
So, to call Differ:
-p=cuda_module#param1#param2... - Run the specified plugin, and pass to its "on_cli" event specified param strings. Count of params must be expected by plugin, e.g. Differ plugin supports "on_cli" and expects 2 filenames. If params contain spaces, you must double-quote the part of the command-line beginning with -p: "-p=......".
So, to call Differ:
Code: Select all
cudatext "-p=cuda_differ#/path/file1#/path/file2"