Skip to content

Configuration manager library for sourcetree written in JavaScript.

License

Notifications You must be signed in to change notification settings

jurosh/node-sourcetree-config-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-sourcetree-config-manager

Configuration manager library for sourcetree written in JavaScript.

Simply add new project into sourcetree confiuguration with nodejs.

Usage

install --save sourcetree-config-manager

Supported operations:

  • Get sourcetree default configuration path - currently only for windows (getConfigPath(userName))
  • Append new project at the end of user project listing (appendItemToConfig(configPath, pathToGitProject, projectName))

See example-usage/ folder for real project example.

Note: you may get current username with command process.env['USERPROFILE'].split(path.sep)[2]

! Please close SourceTree before running script.

Notes

Before doing any file operation backup file will be created near to accessing config file.

Tested with:

  • SourceTree 1.9.10
  • Windows 10
  • npm 3.10.9, 5.0.3 & node v7.2.0, 7.6.0

Please feel free to submit any compatibility or feature related pull request.

About

Configuration manager library for sourcetree written in JavaScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published