1.0.4 • Published 9 years ago

p4-robot v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

P4 Robot

Event driven Perforce module for Node JS

Installation

npm install --save p4-robot

Usage

var Robot = require('p4-robot')
  , p4 = new Robot();

p4.$after('login', function() {
  p4.add('file.js');
  if (p4.opened('file.js')) {
    console.log('Added File to Perforce');
  }
});
//logs Added File to Perforce

p4.login('mySecretPassword');

Available methods:

  • add
  • chmod
  • client
  • edit
  • editOrAdd
  • exec
  • exists
  • lock
  • login
  • logout
  • opened
  • reopen
  • revert
  • submit
  • sync
  • test
  • unlock