Updated name in wf-tool and updated shard.yml to make compileing easier
This commit is contained in:
@@ -8,6 +8,9 @@ targets:
|
||||
wfetch:
|
||||
main: src/wfetch.cr
|
||||
|
||||
wf-tool:
|
||||
main: src/wf-tool.cr
|
||||
|
||||
crystal: '>= 1.19.1'
|
||||
|
||||
license: MIT
|
||||
|
||||
@@ -9,7 +9,7 @@ sudo_user = ENV["SUDO_USER"]?
|
||||
home = "/home/#{sudo_user}"
|
||||
|
||||
OptionParser.parse do |parser|
|
||||
parser.banner = "Usage: installer [arguments]"
|
||||
parser.banner = "Usage: wf-tool [arguments]"
|
||||
parser.on("-i", "--install-only", "Only instals wfetch; Does not run setup") {
|
||||
if LibC.getuid != 0
|
||||
puts "#{red}#{bold}You must be in root to install wfetch!#{reset}"
|
||||
@@ -90,5 +90,5 @@ OptionParser.parse do |parser|
|
||||
end
|
||||
|
||||
if ARGV.empty?
|
||||
puts "Run installer -h"
|
||||
puts "Run wf-tool -h"
|
||||
end
|
||||
@@ -110,7 +110,6 @@ module Wfetch
|
||||
elsif time >= 1200
|
||||
message = "#{bold}#{orange}Have a good afternoon!#{reset}"
|
||||
end
|
||||
|
||||
elsif Time.local.minute >= 10
|
||||
time = (Time.local.hour.to_s + Time.local.minute.to_s).to_i
|
||||
if time < 1200
|
||||
|
||||
Reference in New Issue
Block a user