Merge pull request 'Show package before channel in orbit search' (#7) from search-columns into main

This commit was merged in pull request #7.
This commit is contained in:
nandi committed 2026-11-27 21:11:23 +00:00
commit e9e51459dc
1 file changed
+2 -2
+2 -2
View File
@@ -785,7 +785,7 @@ fn print_table(rows : Array[Array[String]]) -> Unit {
///| ///|
async fn cmd_search(ctx : Ctx, term : String) -> Unit raise OrbitError { async fn cmd_search(ctx : Ctx, term : String) -> Unit raise OrbitError {
let rows : Array[Array[String]] = [ let rows : Array[Array[String]] = [
["CHANNEL", "PACKAGE", "VERSION", "DESCRIPTION"], ["PACKAGE", "CHANNEL", "VERSION", "DESCRIPTION"],
] ]
let mut listed = 0 let mut listed = 0
for ch in ctx.channels { for ch in ctx.channels {
@@ -812,8 +812,8 @@ async fn cmd_search(ctx : Ctx, term : String) -> Unit raise OrbitError {
match found[i] { match found[i] {
Some(info) => Some(info) =>
rows.push([ rows.push([
ch.name,
r, r,
ch.name,
if info.version == "" { if info.version == "" {
"-" "-"
} else { } else {