gito 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -9
- data/lib/gito.rb +5 -5
- data/lib/gito/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbb6e180d5e8a9d926988bb93160a3d6f4c84b6b
|
4
|
+
data.tar.gz: 2ae13974767437052742e4576dfe408695b6ee14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f5f4299c210020b7fd96e486cccc1196af008a7939f1edbea58d0b683f9f4186d5036c831977f83e40d246880c6590d113310da82f05c70cd9efce13dd48d53
|
7
|
+
data.tar.gz: c7cb36a9b1b81d7fff5e68f44175fda012ed4186ce49e2dd6080cfed6e92b91be9ed7f71b423c89e59493fb3cfc3d507246998505d0167ea45397fc9bcf31d7a
|
data/README.md
CHANGED
@@ -23,20 +23,30 @@ A lot of times I find myself wanting to try some code from github and in order t
|
|
23
23
|
## Usage
|
24
24
|
|
25
25
|
```bash
|
26
|
-
|
27
|
-
gito
|
26
|
+
$ gito -h
|
27
|
+
Usage: gito GIT_URL [OPTIONS]
|
28
|
+
|
29
|
+
Options
|
30
|
+
-e, --edit Open the project on an editor
|
31
|
+
-o, --open Open the project on Finder
|
32
|
+
-d, --dryrun Doesn't install the dependencies
|
33
|
+
-h, --help Displays help
|
34
|
+
-v, --version Displays the version
|
35
|
+
```
|
28
36
|
|
29
|
-
|
30
|
-
|
37
|
+
Examples:
|
38
|
+
```bash
|
39
|
+
# git clone this https://github.com/cesarferreira/dryrun
|
40
|
+
gito cesarferreira/dryrun
|
31
41
|
|
32
|
-
# git clone
|
42
|
+
# git clone, install, open and edit the project
|
33
43
|
gito cesarferreira/dryrun --edit --open
|
34
44
|
|
35
|
-
# git clone
|
36
|
-
gito https://github.com/cesarferreira/dryrun
|
45
|
+
# git clone, install, open and edit the project
|
46
|
+
gito https://github.com/cesarferreira/dryrun -e -o
|
37
47
|
|
38
|
-
# git clone
|
39
|
-
gito https://bitbucket.org/
|
48
|
+
# git clone, install,
|
49
|
+
gito https://bitbucket.org/username/project
|
40
50
|
```
|
41
51
|
|
42
52
|
## Installation
|
data/lib/gito.rb
CHANGED
@@ -69,11 +69,6 @@ class MainApp
|
|
69
69
|
# Detect project type
|
70
70
|
project.detect_project_type
|
71
71
|
|
72
|
-
unless @dryrun
|
73
|
-
# Install dependencies
|
74
|
-
project.install_dependencies
|
75
|
-
end
|
76
|
-
|
77
72
|
# Open in editor
|
78
73
|
if @should_edit
|
79
74
|
project.open_editor
|
@@ -84,6 +79,11 @@ class MainApp
|
|
84
79
|
project.open_folder
|
85
80
|
end
|
86
81
|
|
82
|
+
unless @dryrun
|
83
|
+
# Install dependencies
|
84
|
+
project.install_dependencies
|
85
|
+
end
|
86
|
+
|
87
87
|
# Change to directory
|
88
88
|
project.change_directory
|
89
89
|
|
data/lib/gito/version.rb
CHANGED