1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Tools lib files formatted with standard

This commit is contained in:
Daniel Barber 2023-04-06 21:07:04 -05:00
parent 6ef23281bb
commit 1528608558
2 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,10 @@ class ToolsFile
private
def format_tools
Hash[tools_file.lines.map do |tool|
tools_file.lines.map do |tool|
name, version, source = tool.split
[name, { version: version, source: source }]
end]
[name, {version: version, source: source}]
end.to_h
end
def tools_file

View File

@ -7,7 +7,7 @@ module ToolIcons
"python" => "\e[0;33m",
"ruby" => "\e[1;31m",
"rust" => "\e[1;37m",
"yarn" => "\e[0;34m",
"yarn" => "\e[0;34m"
}.freeze
def tool_icon(tool)