oliver 1.3 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oliver/methods.rb +14 -4
- data/lib/oliver/version.rb +1 -1
- data/lib/oliver.rb +10 -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: 0829af1cf342d287fa28774db6f66f644556eea7
|
4
|
+
data.tar.gz: 9bc7e00e6c400665b323ea671082d517281632cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab0701d5e40e9e00d8be1591308252f9c4b9cdf7ebf90a413269107b7298a23392ad67fc029da75a37876e8aebbcd02100bb556ac3791cfb40c71ca728d2d37c
|
7
|
+
data.tar.gz: 5ce71ac0fa202424fdcf2407bb04685f39c3648d9b17329879def762bc665b0e4cf14b2930e74bb4c319799102eeb480759b5af9fdce6f56368a7722190e96b9
|
data/lib/oliver/methods.rb
CHANGED
@@ -13,24 +13,34 @@ end
|
|
13
13
|
def help
|
14
14
|
|
15
15
|
helper = [
|
16
|
+
[
|
17
|
+
"install",
|
18
|
+
"clones / removes directories if they're listed on the #{Name::OLIVER}"
|
19
|
+
],
|
20
|
+
|
21
|
+
[
|
22
|
+
"init",
|
23
|
+
"initializes the main directory by creating a base #{Name::OLIVER}"
|
24
|
+
],
|
25
|
+
|
16
26
|
[
|
17
27
|
"add username/repo",
|
18
|
-
"clone repo and add it to
|
28
|
+
"clone repo and add it to the #{Name::OLIVER}",
|
19
29
|
],
|
20
30
|
|
21
31
|
[
|
22
32
|
"remove username/repo",
|
23
|
-
"delete repo and remove it from
|
33
|
+
"delete repo and remove it from the #{Name::OLIVER}",
|
24
34
|
],
|
25
35
|
|
26
36
|
[
|
27
37
|
"list",
|
28
|
-
"list repos currently on
|
38
|
+
"list repos currently on the #{Name::OLIVER}"
|
29
39
|
],
|
30
40
|
|
31
41
|
[
|
32
42
|
"update",
|
33
|
-
"pull updates from each tracked repo"
|
43
|
+
"pull updates from each tracked repo on the #{Name::OLIVER}"
|
34
44
|
]
|
35
45
|
]
|
36
46
|
|
data/lib/oliver/version.rb
CHANGED
data/lib/oliver.rb
CHANGED
@@ -13,13 +13,22 @@ require_relative "oliver/main"
|
|
13
13
|
# just disable it completely
|
14
14
|
Rainbow.enabled = false if ARGV[-1] == 'colour=off'
|
15
15
|
|
16
|
+
if ARGV[0].nil?
|
17
|
+
help
|
18
|
+
Jib.exit
|
19
|
+
end
|
20
|
+
|
16
21
|
# (Literally) different arguments
|
17
22
|
different_arguments
|
18
23
|
|
19
24
|
# if `Name::OLIVER` (string)
|
20
25
|
# exists as a file continue with oliver
|
21
26
|
if File.file? Name::OLIVER
|
22
|
-
|
27
|
+
if ARGV[0].downcase == 'install'
|
28
|
+
run_main
|
29
|
+
else
|
30
|
+
help
|
31
|
+
end
|
23
32
|
else
|
24
33
|
other_things
|
25
34
|
end
|