Skip to content

Commit

Permalink
Added type to search
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgurance committed Dec 5, 2024
1 parent ed411e9 commit ce26be1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ISM/Default/Option/Software/Search/Search.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module ISM
NoMatchFound = "No match found with the database for "
NoMatchFoundAdvice = "Maybe it's needed of refresh the database?"
None = "None"
TypeField = "Type: "
PortField = "Port: "
NameField = "Name: "
DescriptionField = "Description: "
Expand Down
3 changes: 3 additions & 0 deletions ISM/Option/Software/Search/Search.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ module ISM
matchingSoftwaresArray.each_with_index do |software, index|
greatestVersion = software.greatestVersion

puts ISM::Default::Option::SoftwareSearch::TypeField +
"#{(greatestVersion.type).colorize(Colorize::ColorRGB.new(255,100,100))}"

puts ISM::Default::Option::SoftwareSearch::PortField +
"#{("@"+greatestVersion.port).colorize(Colorize::ColorRGB.new(255,100,100))}"

Expand Down

0 comments on commit ce26be1

Please sign in to comment.