Command-line interface - CoopCmd and AllCoopCmd

CoopCmd is a command-line backdoor to Code Co-op. Some Code Co-op commands that are accessible from the menu can be also called from the command line using special syntax. The argument to CoopCmd is derived from the name of the menu item. For instance, menu "All" contains item "Sync Scripts" and (for historical reasons) it corresponds to the command "All_Synch". There is also a command "Selection_Synch" that corresponds to the menu item "Selection>Sync Next Script".

When you are using CoopCmd, you have to specify the project, either by path or by project ID.


Use AllCoopCmd to perform the same command in all projects. (You don't need to specify the project.)

Some commands require additional arguments. Here are the examples:

coopCmd:
<root> | -p:<project ID> -c:"All_Synch"
   
<root> | -p:<project ID> -c:"Project_Members userid:\"id\" [name:\"name\" | state:\"[voting/observer/removed/admin]]\""
Note: to change the status of a local member enter: userid:\"-1\"
<root> | -p:<project ID> -c:"Project_Invite user:\"invitee name\" email:\"invitee email\" [observer:\"yes\"] [satellite:\"yes\" computer:\"name\"]

<root> | -p:<project ID> -c:"Selection_ChangeFileType type:\"text file\" \"c:\project\file.txt\""
Notice: make sure to precede every internal quotation mark with a backslash. Project ID doesn't have to be quoted. Example: To invite Chad, who is an email peer, to the project Frequency Analyzer use:
coopCmd "c:\work\Frequency Analyzer" -c:"Project_Invite user:\"Chad\" email:\"chad.codewell@gmail.com\" observer:\"yes\""
allCoopCmd:
   "All_Synch"
   "Project_Members userid:\"-1\" [name:\"name\" | state:\"[voting/observer/removed/admin]]\""
   ...
Notice: to operate on member states, set userid to -1 Example1: to synchronize all projects on a computer use:
allcoopcmd.exe All_Synch
Example2: to change status of a local member to observer use:
allcoopcmd.exe "Project_Members userid:\"-1\" state:\"observer\""
Example3: to invite Chad, who is an e-mail peer, as an Observer to all projects with Admin on this machine use:
allCoopCmd.exe "Project_Invite user:\"Chad\" email:\"chad.codewell@gmail.com\" observer:\"yes\""