2 Commits

Author SHA1 Message Date
koffeejava
df7f94cb02 test 2026-04-17 07:13:33 -06:00
koffeejava
e1bafb335d added another puts line in -v 2026-03-14 23:33:12 -06:00

View File

@@ -1,3 +1,5 @@
# test :)
require "http/client"
require "json"
require "toml"
@@ -34,6 +36,7 @@ module Wfetch
}
parser.on("-v", "--version", "Shows the current version of wfetch") {
puts "#{bold}#{orange}Wfetch 1.1.0 KoffeeJava 2026#{reset}"
puts "Made in Crystal by KoffeeJava with Love"
exit
}
parser.on("-h", "--help", "Show this help") do
@@ -49,7 +52,7 @@ module Wfetch
print "#{bold}#{orange}Wfetch KoffeeJava 2026#{reset}"
config = TOML.parse(File.read(Path["~/.local/share/Wfetch/config.toml"].expand(home: true)))
config = TOML.parse(File.read("config/config.toml")].expand(home: true)))
city = config["city"]
api_key = config["api"]
@@ -104,7 +107,7 @@ module Wfetch
path_config = gets
disp = TOML.parse(File.read(Path["#{path_config}"].expand(home: true)))
else
disp = TOML.parse(File.read(Path["~/.local/share/Wfetch/disp.toml"].expand(home: true)))
disp = TOML.parse(File.read())
end
repeat = 1