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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d623d8bf391421e83ae1ac8ad15828899b49eb0e
4
- data.tar.gz: af66dd5ba8c910faf9a9334efdaf5493c19ee350
3
+ metadata.gz: 0829af1cf342d287fa28774db6f66f644556eea7
4
+ data.tar.gz: 9bc7e00e6c400665b323ea671082d517281632cb
5
5
  SHA512:
6
- metadata.gz: bf5c959d1618b944a565921461e098d8eb1c43865601e33ec5fe5f02431b33f93faf96d982253c6c88aeda5742523589ff6d0fae18295c53fc06f8c36ada29b0
7
- data.tar.gz: 6f58f02f00589db8a6f105eb5d3194915c46548a4e202644ffa59debdc0cfce5e5c63627019f63be1474b07ef455cda7307daca52eda3dd5952b0e123753d98d
6
+ metadata.gz: ab0701d5e40e9e00d8be1591308252f9c4b9cdf7ebf90a413269107b7298a23392ad67fc029da75a37876e8aebbcd02100bb556ac3791cfb40c71ca728d2d37c
7
+ data.tar.gz: 5ce71ac0fa202424fdcf2407bb04685f39c3648d9b17329879def762bc665b0e4cf14b2930e74bb4c319799102eeb480759b5af9fdce6f56368a7722190e96b9
@@ -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 tracking list",
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 tracking list",
33
+ "delete repo and remove it from the #{Name::OLIVER}",
24
34
  ],
25
35
 
26
36
  [
27
37
  "list",
28
- "list repos currently on tracking list"
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
 
@@ -1,3 +1,3 @@
1
1
  module Oliver
2
- VERSION = "1.3"
2
+ VERSION = "1.3.5"
3
3
  end
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
- run_main
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oliver
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh