h-wang / code-space
Managing your code - projects and repositories
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:application
Requires
- symfony/console: ~3.2
This package is not auto-updated.
Last update: 2024-12-22 06:38:42 UTC
README
Manages your local development projects and code repositories.
When developing projects, especially micro-services, we often end up with hundres of code repositories on our dev machines. CodeSpace helps to manage these repositories and do batch operations on them easily. You can use it as a stand-alone tool. There is no need to integrate into any project.
CodeSpace is inspired by the LinkORB Projex and Hotel.
Features
Project scanner
Recursively scans the giving directory to find projects/repositories.
Scan the code repositories and show output to the console bin/codespace scan [--path=~/git]
Export projects
- Export to HTML
bin/codespace export:html /path/to/the/target.html [--path=~/git]
- Export to CSV
bin/codespace export:csv /path/to/the/target.csv [--path=~/git]
Auto-Generate web-server config files
With the export feature, we can easily generate Nginx server configuration files for multiple projects. It automatically detects your OS and figure out where to put the configuration files and log files; automatically detects the type of project and point to the correct web directory.
bin/codespace export:nginx-conf [--path=~/git] [--apply]
* At the moment, for OS support, only MacOS with Homebrew and Linux are supported. Only Symfony 3 and 4 projects are supported. Contributions needed.
Do git fetch on all projects
When the --pull
option is used, the git pull
command is executed instead of the git fetch
command.
bin/codespace git fetch [--path=~/git] [--pull]
Auto-update your favorite IDE's project manager
Scan the repositories and make them available to your IDE's project manager plugins. Now Atom and VSCode are supported. The project managers are:
https://atom.io/packages/project-manager
https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager
Commands:
Without specifying the --ide=
option, both Atom and VSCode are updated.
bin/codespace ide:pm [--ide=atom] [--path=~/git]
Installation:
Use the source code:
composer install
Use the phar:
php code-space.phar
Use
Base command:
`bin/codespace`
# or
php code-space.phar
You can view all available commands by running the base command.
License
Please refer to the included LICENSE.md file