pmanager 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +122 -0
- data/bin/pm +6 -0
- data/lib/pmanager.rb +8 -0
- data/lib/pmanager/cli.rb +9 -0
- data/lib/pmanager/config.rb +5 -0
- data/lib/pmanager/version.rb +7 -0
- metadata +86 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: daf0e34fe56febe4b6427e5e1f59fcde02e639bf
|
4
|
+
data.tar.gz: 075874232cc91e447daea7ede81b9bdd40656305
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b561b61d2c94bb4415189392092b5fb02283bd09e2ca95a5686112d27f15c9595d3a870f4bb9b1b8f869b7a970686f69d0978da60dbbbc9a56c66b16adcb1c61
|
7
|
+
data.tar.gz: e7e61d0aa0879838a09d421cab96269e35bd8868d93b7407a649f46ef2b63a3932010c43cd35b8bdc82f410853ed464039bbf3cb9d9a8aa484b84a78d587e469
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Ángel M
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
# pm
|
2
|
+
The easy way to switch to your projects on Shell. Add your projects to `pm` and switch between them with a command.
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
To install the program, download the installer and execute it.
|
6
|
+
|
7
|
+
```zsh
|
8
|
+
cd ~
|
9
|
+
wget https://raw.githubusercontent.com/Angelmmiguel/pm/master/install.sh
|
10
|
+
chmod 755 ./install.sh
|
11
|
+
```
|
12
|
+
|
13
|
+
If you want to install last stable version, only run downloaded script:
|
14
|
+
|
15
|
+
```zsh
|
16
|
+
./install.sh
|
17
|
+
```
|
18
|
+
|
19
|
+
If you want to install latest development version, run the installer with `--prerelease` option:
|
20
|
+
|
21
|
+
```zsh
|
22
|
+
./install.sh --prerelease
|
23
|
+
```
|
24
|
+
|
25
|
+
Type your shell when the installer ask to you:
|
26
|
+
|
27
|
+
```zsh
|
28
|
+
What is your shell? [ zsh, bash ]:
|
29
|
+
```
|
30
|
+
|
31
|
+
### Update PM
|
32
|
+
|
33
|
+
To update PM, run same process than installation and say `yes` when PM ask you to update.
|
34
|
+
|
35
|
+
## Shells
|
36
|
+
Available shells are:
|
37
|
+
* ZSH
|
38
|
+
* Bash (Prerelease, you need to run installer with `--prerelease` option)
|
39
|
+
|
40
|
+
## Usage
|
41
|
+
Move to your awesome project and add it to `pm`:
|
42
|
+
|
43
|
+
```zsh
|
44
|
+
cd projects/awesome-project
|
45
|
+
pm add awesome-project
|
46
|
+
```
|
47
|
+
|
48
|
+
Try to add another. Next, list stored projects:
|
49
|
+
|
50
|
+
```zsh
|
51
|
+
pm list
|
52
|
+
# awesome-project
|
53
|
+
# another-project
|
54
|
+
```
|
55
|
+
|
56
|
+
To switch into a project, use `pm go`:
|
57
|
+
|
58
|
+
```zsh
|
59
|
+
pm go awesome-project
|
60
|
+
# Current project: awesome-project
|
61
|
+
```
|
62
|
+
|
63
|
+
If a project is not longer available, remove it:
|
64
|
+
|
65
|
+
```zsh
|
66
|
+
pm remove another-project
|
67
|
+
pm list
|
68
|
+
# awesome-project
|
69
|
+
```
|
70
|
+
|
71
|
+
# Config
|
72
|
+
|
73
|
+
## Global
|
74
|
+
|
75
|
+
PM allow some config values. To add, edit or remove a config parameter:
|
76
|
+
|
77
|
+
```zsh
|
78
|
+
pm config <add|get|remove> <parameter> (value)
|
79
|
+
```
|
80
|
+
|
81
|
+
Available config parameters:
|
82
|
+
* `after-all` : execute this command after switch to a project with `pm go`.
|
83
|
+
* `git-info` : show a resume of Git when `go` to a project.
|
84
|
+
|
85
|
+
For example, you can open Sublime Text on a project when `go` to it:
|
86
|
+
|
87
|
+
```zsh
|
88
|
+
pm config add after-all "sublime ."
|
89
|
+
```
|
90
|
+
|
91
|
+
## Projects
|
92
|
+
|
93
|
+
With PM you can add configuration to projects. To add, edit or remove a config parameter of a project:
|
94
|
+
|
95
|
+
```zsh
|
96
|
+
pm config-project <project> <add|get|remove> <parameter> (value)
|
97
|
+
```
|
98
|
+
|
99
|
+
Available config parameters:
|
100
|
+
* `after` : execute this command after switch to the project with `pm go`.
|
101
|
+
* `git-info` : show a resume of Git status.
|
102
|
+
|
103
|
+
For example, you can start [Gulp](http://gulpjs.com/) in a project when `go` to it:
|
104
|
+
|
105
|
+
```zsh
|
106
|
+
pm config-project myproject add after "gulp"
|
107
|
+
```
|
108
|
+
|
109
|
+
# Example
|
110
|
+
|
111
|
+

|
112
|
+
|
113
|
+
# Contribute
|
114
|
+
|
115
|
+
To contribute `pm`:
|
116
|
+
|
117
|
+
* Create an issue with the contribution: bug, enhancement..
|
118
|
+
* Fork the project and edit it
|
119
|
+
* Create a pull request when you finish
|
120
|
+
|
121
|
+
# License
|
122
|
+
PM is released under the MIT license. Copyright [@Laux_es](https://twitter.com/Laux_es) ;)
|
data/bin/pm
ADDED
data/lib/pmanager.rb
ADDED
data/lib/pmanager/cli.rb
ADDED
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pmanager
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Angel M Miguel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.19.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.19.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rainbow
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.1.0
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.1.0
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.1.0
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.1.0
|
47
|
+
description: The easy way to switch to your projects on the shell
|
48
|
+
email: angel@laux.es
|
49
|
+
executables:
|
50
|
+
- pm
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- LICENSE
|
55
|
+
- README.md
|
56
|
+
- bin/pm
|
57
|
+
- lib/pmanager.rb
|
58
|
+
- lib/pmanager/cli.rb
|
59
|
+
- lib/pmanager/config.rb
|
60
|
+
- lib/pmanager/version.rb
|
61
|
+
homepage: http://irb.rocks
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
- bin
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 2.4.5.1
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: The easy way to switch to your projects on the shell
|
86
|
+
test_files: []
|