Pass args to cos-extensions list
args are only passed to `cos-extensions list gpu`
not `cos-extensions list`. This CL fixes it.
BUG=b/361630064
Change-Id: I4c505acee049e6e55692be71e5362dfa3d09622d
Reviewed-on: https://cos-review.googlesource.com/c/cos/cos-extensions/+/79339
Reviewed-by: Shuo Yang <gshuoy@google.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
Tested-by: He Gao <hegao@google.com>
diff --git a/commands/rootCmds.go b/commands/rootCmds.go
index b2b1976..1c21811 100644
--- a/commands/rootCmds.go
+++ b/commands/rootCmds.go
@@ -202,7 +202,7 @@
if err != nil {
return fmt.Errorf("Failed to set gpu installer: %v", err)
}
- err = gpu.List(installers, false, []string{})
+ err = gpu.List(installers, false, args)
if err != nil {
return fmt.Errorf("Failed to run list command: %v", err)
}