Compare commits
1 Commits
v1.0.0
...
v0.1.0-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89c2b85dbc |
@@ -11,8 +11,6 @@ module Wfetch
|
|||||||
bold = "\033[1m"
|
bold = "\033[1m"
|
||||||
reset = "\e[0m"
|
reset = "\e[0m"
|
||||||
|
|
||||||
puts "#{bold}#{orange}Wfetch KoffeeJava 2026#{reset}"
|
|
||||||
|
|
||||||
debug = false
|
debug = false
|
||||||
|
|
||||||
OptionParser.parse do |parser|
|
OptionParser.parse do |parser|
|
||||||
@@ -29,7 +27,11 @@ module Wfetch
|
|||||||
print "End"
|
print "End"
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
parser.on("-v", "--verbose", "Gives additional details.") {debug = true}
|
parser.on("-r", "--verbose", "Gives additional details.") {debug = true}
|
||||||
|
parser.on("-v", "--version", "Shows the current version of wfetch") {
|
||||||
|
puts "#{bold}#{orange}Wfetch 0.1.0 KoffeeJava 2026#{reset}"
|
||||||
|
exit
|
||||||
|
}
|
||||||
parser.on("-h", "--help", "Show this help") do
|
parser.on("-h", "--help", "Show this help") do
|
||||||
|
|
||||||
puts parser
|
puts parser
|
||||||
@@ -42,7 +44,7 @@ module Wfetch
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
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(Path["~/.local/share/Wfetch/config.toml"].expand(home: true)))
|
||||||
city = config["city"]
|
city = config["city"]
|
||||||
|
|||||||
Reference in New Issue
Block a user