https://github.com/sachinrising/p4-workspace-creator
Creates perforce workspace using spec file
https://github.com/sachinrising/p4-workspace-creator
p4 perforce python
Last synced: 5 months ago
JSON representation
Creates perforce workspace using spec file
- Host: GitHub
- URL: https://github.com/sachinrising/p4-workspace-creator
- Owner: sachinrising
- License: mit
- Created: 2021-12-18T23:34:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T22:21:28.000Z (over 1 year ago)
- Last Synced: 2025-09-21T18:03:10.914Z (9 months ago)
- Topics: p4, perforce, python
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
   
## Description
To automate the creation of perforce workspace using spec file stored in the depot path
Spec file could be like
`//spec/... //[placeholder]/spec/...`
It creates perforce workspace using spec file which is stored in the depot path
## How to install
```
python -m pip install P4WorkspaceCreator
```
## Usage
Usage example
```
python -m P4WorkspaceCreator -u User -p Password -port perforce:1666 -c User_MachineName_P4WorkspaceCreator -r C:\users\sachin\perforce-workspace -s //spec/example/p4workspacecreator.txt -l ""
```
```
-u USER, --user USER Perforce user name
-p PASSWORD, --password PASSWORD
Perforce password
-port PORT, --port PORT
Perforce port address
-c CLIENT, --client CLIENT
Client name which will be used to create workspace
-r ROOT, --root ROOT Workspace root path
-s SPEC, --spec SPEC Spec file path in depot
-l PLACEHOLDER, --placeholder PLACEHOLDER
Place holder used in the spec file e.g ''
```