Sha256: dc3887a8d0a3a5244b85b84e24372350ce04cb5ce58dd739a47a7f7a93f53db0
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
#!/usr/bin/env ruby require_relative File.join '..', 'lib', 'h' CONF_PATH = File.join(File.expand_path('~'), '.h') unless File.exist?(CONF_PATH) print "Creating #{CONF_PATH} file... " File.open(CONF_PATH, 'w') do |f| f.write('secret') end File.chmod(0600, CONF_PATH) puts 'Done.' end h = H::Generator.new(File.open(CONF_PATH).readlines.first.chomp) puts h.input ARGV[0].to_s, if ARGV[1].nil? 44 else ARGV[1].to_i end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
h-2.2.2 | bin/h |
h-2.2.1 | bin/h |
h-2.2.0 | bin/h |