Bugzilla – Bug 256
Add sync/unsync command to CLI
Last modified: 2009-09-08 09:15:39 UTC
It would be great if there was a way to sync/unsync a player via the CLI.
Created attachment 74 [details] basic sync CLI simply allows one player to sync to another, or unsync. added the docs to explain it as well. this cannot sync up more than 2, or allow joining an existing sync group yet.
Looks reasonable, but one thing comes to mind... The "?" returns a human readable list, which may not be the most useful thing for the CLI. Also, this should allow, through multiple commands, syncing of more than two players, no?
eventually, yes. what woudl you prefer be returned? existing routines have human readable, or an array of client object references.
I think perhaps I was putting the two clients in the wrong order for the sync call. This was causing a subsequent sync command to unsync the previous. The CLI allows referencing client by the ID via getClient or by the index. As this is used more than once, do we think it might break something to allow index reference to return from getClient?
Created attachment 75 [details] new patch this one does allow multiple sync. ? uses syncname to return the query, which is properly escaped. The only other thing I could think of would be to parse that and return a list of ID's or indexes.
committed July 21, 2004 with updates to CLI docs. <playerID> sync <playerindex|playerID> to sync <playerID> sync - to remove <playerID> from its group <playerID> sync ? to list playerIDs synced with that player
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.