https://github.com/jurosh/node-sourcetree-config-manager
Configuration manager library for sourcetree written in JavaScript.
https://github.com/jurosh/node-sourcetree-config-manager
git javascript nodejs source-tree
Last synced: 3 months ago
JSON representation
Configuration manager library for sourcetree written in JavaScript.
- Host: GitHub
- URL: https://github.com/jurosh/node-sourcetree-config-manager
- Owner: jurosh
- License: apache-2.0
- Created: 2017-01-05T21:17:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-17T18:50:36.000Z (almost 9 years ago)
- Last Synced: 2025-10-01T14:36:32.673Z (7 months ago)
- Topics: git, javascript, nodejs, source-tree
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.