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:
parent
6ef23281bb
commit
1528608558
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user