UNPKG

tfs

Version:

NodeJS wrapper for Team Foundation Source Control CLI.

26 lines (21 loc) 920 B
var format = require('../utils/format'), output = require('../utils/output'), tfSync = require('../utils/tfSync'); /** * The dir command displays all or some of the contents of the server for Team Foundation version control.Required PermissionsTo use the dir command, you must have Read permission set to Allow. For more information, see Team Foundation Server Permissions. * * @param {Array} itemspec File(s) or folder(s) to retrieve. If null/undefined, equals CWD. * @param {Object} options Command options */ var dir = function(itemspec, options) { var params = format.items(itemspec); params = params.concat(format.options(options)); if (options.verbose) { output.verbose('Command: get ' + params.join(' ')); } return tfSync('dir', params, function() { output.success('Done, without errors.'); }, !!options.verbose); }; module.exports = dir;