From 651642c7223e3a8e27cab33f6222cb27e57d16be Mon Sep 17 00:00:00 2001 From: peter-evans Date: Thu, 18 Oct 2018 09:29:39 +0900 Subject: [PATCH] Change the default analysis type from apt to size --- README.md | 2 +- cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f82e6c5..f1db6c76 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ container-diff analyze --type=apt --type=node [Apt and Node] # --type= --type= --type=,... ``` -By default, with no `--type` flag specified, container-diff will run Apt package analysis. +By default, with no `--type` flag specified, container-diff will run image size analysis. To use container-diff to perform a diff analysis on two images, you need two Docker images (in the form of an ID, tarball, or URL from a repo). Once you have those images, you can run any of the following differs: ```shell diff --git a/cmd/root.go b/cmd/root.go index 1f75cbf7..17397b64 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -120,7 +120,7 @@ func validateArgs(args []string, validatefxns ...validatefxn) error { func checkIfValidAnalyzer(_ []string) error { if len(types) == 0 { - types = []string{"apt"} + types = []string{"size"} } for _, name := range types { if _, exists := differs.Analyzers[name]; !exists {