ProjectMan is a CLI which lets you add projects to favorites using command pm add
and open them from anywhere you want using command pm open
.
Along with this there are also other commands like pm seteditor
, pm remove
, cd $(pm getpath)
mentioned in documentation below.
With NodeJS installed in your machine,
npm install -g projectman
pm
is an alias of projectman
so you can use pm <command>
or projectman <command>
Opens project in your code editor (Check out pm seteditor
command to set your preferred editor)
Usage :
pm open [projectName]
[projectName]
is an optional parameter.
Alias: pm o
, pm
Add project to favorites
cd /till/the/project
pm add
You can pass --url
param to add a URL instead of a directory.
Use added projects as a template to create new project
pm create
Alias: pm c
pm seteditor
Sets default editor to open projects from.
To set a different editor for a specific project,
Flag: --for-project
pm seteditor --for-project
Sets different editor for a specific project.E.g You can use VSCode for other projects and Atom for CoolProject1
If your TextEditor/IDE is not listed, You can select option Other
from the list and give your editorCommand
.Read editorCommand ref for more information.
cd
to a project without opening.cd $(pm getpath [projectName])
[projectName]
is an optional parameter.
Alias : cd $(pm gp)
(Note: This does not work in Windows cmd, You can use it in Windows Powershell)
pm remove
Removes project from favorites.
pm rmeditor
Shows list of project and removes the project specific editor from the project.
pm rmeditor --all
removes all project specific editors.
If you want to sort projects/change name of project/change path, You can type pm edit
to open settings.json
{
"commandToOpen": "code",
"projects": [
{
"name": "Project1",
"path": "path/to/project1"
},
{
"name": "Project2",
"path": "path/to/project2",
"editor": "atom"
},
{
"name": "Project3",
"path": "path/to/project3"
}
]
}
This will show three projects in pm open
and project2 will be opened in Atom and other projects will be opened in Visual Studio Code
> commandToOpen :
code
which opens in vscode.Editor | 'commandToOpen' value |
---|---|
VSCode | code |
Atom | atom |
Sublime | subl |
Vim | vim |
WebStorm | wstorm |
> projects.name
:
projectman open
> projects.path
:
> projects.editor
:
commandToOpen
"editor": "<commandToOpen>"
in projects array in settings.json (Example is shown above)@latest
pm create
commandFor More Changes read CHANGELOG.md
@hskang9 has made a pretty cool rust port for projectman. You can check it out at: https://github.com/hskang9/projectman-rust
I would be extremely happy to have people contribute to ProjectMan. You can read Contribution guidelines in CONTRIBUTING.md
Thank you for showing Interest! Do contribute and star ProjectMan