Updated cli commands parsing and list command functionality.

Rewrote cli commands with cobra package.
Updated list command functionality to use extensions as an argument and accept flag '--gpu-installer' before terminator string '--'.

Change-Id: I4f533c4111a40cc40831f6e228780cc37ef3e1e1
Reviewed-on: https://cos-review.googlesource.com/c/cos/cos-extensions/+/74773
Reviewed-by: He Gao <hegao@google.com>
Tested-by: He Gao <hegao@google.com>
7 files changed
tree: 9471035d0f85d1cf896ebf995bdea8fd747bc253
  1. commands/
  2. extensions/
  3. tools/
  5. cos-extensions.go
  6. go.mod
  7. go.sum
  8. README.md

cos-extensions for Container-Optimized OS

cos-extensions is a tool used in Container-Optimized OS. It provides utility to manage COS extensions.

See CONTRIBUTING.md for how to contribute.