When you turn on your PC and you want to working on a project, some time need to open and start some application for example IDE, browser, ssh client and etc. so MPPM can help you. π
MPPM is a simple cli to speed up your development tools startup, with one command you can open all of the tools that you need to start programming and developing your project like some IDE, Database tools, open browser with multi tab and etc.
There is two way to install MPPM:
Download binary file (Lastest version: 0.2.4) for your OS from release page. (windows, linux, mac) Don't forget add MPPM binary to your system path.
At first clone project:
git clone https://github.com/spf13/cobra.git
go to the project folder cd mppm
and now build your binary and use that:
go install
note: for this way Golang should be installed on system. install link
Now you can use mppm help
to see available Commands:
> mppm help
//output
A simple cli to speed up your development tools startup,
with one command you can open all of the tools that you need to
start programming and developing your project like some IDE, Database tools and etc
enjoy it and have fun π
Usage:
mppm [flags]
mppm [command]
Available Commands:
add Add command to your project
create Create new project
delete Delete a command of project
help Help about any command
info Show all Command and detail of a project
remove Remove a project and all of related data
run Run and execute project commands
show Show all project in mppm
Flags:
-h, --help help for mppm
-v, --version Show mppm version
Use "mppm [command] --help" for more information about a command.
First things first we need to create a project with cearte command:
> mppm cearte test
//output
test created successfully π
Now add command to project with 'mppm add [ProjectName] --command=***'
Use "mppm add --help" for more information about this command.
After create project you can add your command to that with mppm add [ProjectName]
Command, and --command
, --path
Flags.
use this flag to set your command. shortly you can use -C
use this flag to set path you want to your command run at that. shortly you can use -P
> mppm add test -C "code ." -P "/home/user/project1"
> mppm add test -C "code ." -P "/home/user/project2"
//output
New command add to project successfully π
When create project and add command(s) to that now it's ready to use with mppm run [ProjectName]
Command.
> mppm run test
It's done now enjoy it.
Show command will show all projects created in mppm.
mppm show
//output
____________________________________
|List of all project created in mppm:|
|1. test |
|2. test2 |
|3. test3 |
|4. test4 |
|____________________________________|
Info command will show all data about a project.
> mppm info test
//output
Name: test
--------------- Command 0 ---------------
Path: /home/user/project1
Command: code .
--------------- Command 1 ---------------
Path: /home/user/project2
Command: code .
Delete command will delete a command in project. with --command
or -c
you can select index of command you want to delete.
> mppm delete test -c 0
//output
--------------- Command 0 ---------------
Path: /home/user/project1
Command: code .
--------------- Command 1 ---------------
Path: /home/user/project2
Command: code .
Do you want to delete command 0 ? y
Deleted successfully
Remove commad will remove a project and all of related data.
> mppm remove test
//output
Are you sure? y
Please at first read all above document and create a project with create
command then read this part.
To open a project in vscode first create a project and then add this command:
> mppm add myProject -c "code ." -p "/path/to/project"
> mppm add myProject -c "start devenv" -p "/path/to/project/project.sln"
If you add intellij bin folder to your system path you can use this:
> mppm add myProject -c "idea(.exe) /path/to/project" -p "/"
> mppm add myProject -c "start firefox/chrome google.com,site2.com,site3.com" -p "/"
> mppm add myProject -c "firefox/chrome google.com,site2.com,site3.com" -p "/"
In this case I use putty:
> mppm add myProject -c "putty.exe -ssh [email protected]" -p "/"
> mppm add myproject -c "gnome-terminal -e \"ssh [email protected]\"" -p "/"
If see any problem or bug in MPPM open issue and tell me.
Feel free to fork this repository and send pull request ππ