Skip to content

bogas04/project-manager-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package Manager CLI

Inspired by eivind88/prm, I decided to build it using NodeJS. Though it doesn't really do anything better, I just wanted something to play with ES2015.

However, the project does benefit from being a NodeJS module, multiplatform support.

Note: Node 4.0.0 or higher needed, as the code is written in ES2015

Screencast

Installation

Make sure you have Node 4.0.0 (at least) installed and npm installed.

npm i node-pmc -g

Setup

Since a node process can only change working directory of its child process, in order to cd into your project, you will need to add an alias to your bash_rc, bash_profile like the following:

#pmc
pmcd () { cd `pmc $1`; }
pmcs () { cd `pmc $1`; `pmc start $1`; }

Usage

List all projects

pmc ls|list

Add new project

pmc add <project-name> <location> 

Remove existing project

pmc rm|remove <project-name>

Open existing project If you have added an alias

pmc-cd <project-name>

Else

cd `pmc <project-name>`

or

cd $(pmc <project-name>)

Add start script for a project (NOTE: It overwrites, so you can use it to change or even remove script)

pmc add-start <project-name> 

To see start script of a project

pmc start <project-name>

Start a project

$(pmc start <project-name>)

Credits

Thanks to eivind88/prm for the idea

License

MIT

About

💻 Project manager built with NodeJS 4.0.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published