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
|
private
|
||||||
|
|
||||||
def format_tools
|
def format_tools
|
||||||
Hash[tools_file.lines.map do |tool|
|
tools_file.lines.map do |tool|
|
||||||
name, version, source = tool.split
|
name, version, source = tool.split
|
||||||
[name, { version: version, source: source }]
|
[name, {version: version, source: source}]
|
||||||
end]
|
end.to_h
|
||||||
end
|
end
|
||||||
|
|
||||||
def tools_file
|
def tools_file
|
||||||
|
|||||||
@ -7,7 +7,7 @@ module ToolIcons
|
|||||||
"python" => "\e[0;33m",
|
"python" => "\e[0;33m",
|
||||||
"ruby" => "\e[1;31m",
|
"ruby" => "\e[1;31m",
|
||||||
"rust" => "\e[1;37m",
|
"rust" => "\e[1;37m",
|
||||||
"yarn" => "\e[0;34m",
|
"yarn" => "\e[0;34m"
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
def tool_icon(tool)
|
def tool_icon(tool)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user