1
0
mirror of https://github.com/ko-build/ko.git synced 2025-02-04 19:16:00 +02:00
ko-build/doc/ko_deps.md
Jason Hall 780c281292
Generate Markdown docs (#414)
* Generate Markdown docs

This is largely copied from similar work in go-containerregistry

This required moving the Root command definition out of main() into a
place where it could be referenced from the gendoc tooling.

* fix boilerplate

* moar fix boilerplate

* update cmd/ko/main.go

* set -j to GOMAXPROCS at runtime

* rebase on cli-runtime change

* remove trailing whitespace
2021-08-11 13:54:13 -07:00

784 B

ko deps

Print Go module dependency information about the ko-built binary in the image

Synopsis

This sub-command finds and extracts the executable binary in the image, assuming it was built by ko, and prints information about the Go module dependencies of that executable, as reported by "go version -m".

If the image was not built using ko, or if it was built without embedding dependency information, this command will fail.

ko deps IMAGE [flags]

Examples


  # Fetch and extract Go dependency information from an image:
  ko deps docker.io/my-user/my-image:v3

Options

  -h, --help   help for deps

SEE ALSO

  • ko - Rapidly iterate with Go, Containers, and Kubernetes.
Auto generated by spf13/cobra on 10-Aug-2021