mike Posted October 4, 2011 Report Share Posted October 4, 2011 I'm working on a small project to automate some SCM procedures and I have the need to programmatically list the workspaces. Currently I grab the output from 'cm lwk' and parse to grab the workspace name, machine, and path. Although not in the 'cm help lwk' documentation, it seems that lwk supports the --format=X argument. Unfortunately, I can't figure out what the tags are for the format argument. For example: > cm listworkspaces --format={name} > Error: Input string was not in a correct format. Are the format tags for workspaces documented anywhere? Thanks! Link to comment Share on other sites More sharing options...
miller Posted October 5, 2011 Report Share Posted October 5, 2011 for wks name: cm lwk --format={0} path: cm lwk --format={2} enjoy, Miller Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.