Skip to content

Commit

Permalink
feat: Latest version appears by default in wildcard searches
Browse files Browse the repository at this point in the history
Closes #197
Fixes #196
  • Loading branch information
G@rv!t authored and mthmulders committed Jul 11, 2023
1 parent 7c8b5bc commit eff905b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ private void printRow(final Help.TextTable table, final SearchResponse.Response.
Instant.ofEpochMilli(doc.timestamp()).atZone(ZoneId.systemDefault())
);

table.addRowValues(doc.id(), lastUpdated);
table.addRowValues(doc.id() + ":" + doc.latestVersion(), lastUpdated);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void should_print_gav() {

// Assert
var table = buffer.toString();
assertThat(table).contains("org.codehaus.plexus:plexus-utils");
assertThat(table).contains("org.codehaus.plexus:plexus-utils:3.4.1");
}

@Test
Expand Down

0 comments on commit eff905b

Please sign in to comment.