devhints 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/devhints +16 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abcee83faae81b11825a328c8aee270e099aac4b2d88c3ea2a6c6e85aa023b44
4
- data.tar.gz: '082a7ed3412558b1004dbb7427f1dc14c9ce0a4b5b280d322543361c3c3816bd'
3
+ metadata.gz: 0ae2772ddc336c553babe8d43777b63094c2c848c7a30167b6fa8fc63188dcfd
4
+ data.tar.gz: baea8482b7d6b7ef7ec2a981ffe9c8429969619fd6b916d9797598276e40a7de
5
5
  SHA512:
6
- metadata.gz: aea3293d77522c35b2f8a44ff69ddd0f0628470e0fa2f4206cc067b8619b1d9780f444af9fa5a2dc073b58f04af8209d924f12483e0682e3a6fce70440bee06c
7
- data.tar.gz: 5fde36f36d7593d3ff8b0f8900b94ab73a311d1337519cb20cd55ef58b79c7fcac4fb0c6d9c95b6790bef05a128092ef16cde35c43294cfe8cee7f65dc4f183f
6
+ metadata.gz: c82d21e950468efa7338622b56224b6704ff59441d8a7255a0556c58cfcbad2798a619a6c102554e5270b56639c9f5fb0d05a8ba65a39e8b87d3a6462d04e68b
7
+ data.tar.gz: 7cb79356def07452810b31d196f888db5f8eba528fe3ddf567c709e39ae5d53ca2289894638923ef377798ea1fbfd3b55b5f0a140c0d190f3e8c43cb67042615
data/bin/devhints CHANGED
@@ -51,4 +51,20 @@ if help_commands.any? { |cmd| ARGV.include? cmd }
51
51
  end
52
52
  end
53
53
 
54
+ cli_commands = help_commands
55
+ MyCLI.commands.each do |hash|
56
+ unless cli_commands.include?(hash)
57
+ cli_commands << hash[0]
58
+ end
59
+ end
60
+ MyCLI.map.keys.each do |option|
61
+ unless cli_commands.include?(option)
62
+ cli_commands << option
63
+ end
64
+ end
65
+
66
+ if (ARGV & cli_commands).empty?
67
+ ARGV.insert(0, MyCLI.default_task)
68
+ end
69
+
54
70
  MyCLI.start(ARGV)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devhints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack MapelLentz