Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into keep-owner
  • Loading branch information
donmccasland authored May 13, 2019
commit f814981e734883767cf3539c3397cea0b6d109ae
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var LogLevel string
var format string

var keepOwner bool
const containerDiffEnvCacheDir = "CONTAINER_DIFF_CACHEDIR"

type validatefxn func(args []string) error

Expand Down Expand Up @@ -240,4 +241,7 @@ func addSharedFlags(cmd *cobra.Command) {
cmd.Flags().BoolVarP(&util.SortSize, "order", "o", false, "Set this flag to sort any file/package results by descending size. Otherwise, they will be sorted by name.")
cmd.Flags().BoolVarP(&noCache, "no-cache", "n", false, "Set this to force retrieval of image filesystem on each run.")
cmd.Flags().BoolVarP(&keepOwner, "keep-owner", "k", false, "Set this to keep the owner of image filesystem. Make sure you are a root user for setting this value.")
cmd.Flags().StringVarP(&cacheDir, "cache-dir", "c", "", "cache directory base to create .container-diff (default is $HOME).")
cmd.Flags().StringVarP(&outputFile, "output", "w", "", "output file to write to (default writes to the screen).")
cmd.Flags().BoolVar(&forceWrite, "force", false, "force overwrite output file, if exists already.")
}
You are viewing a condensed version of this merge commit. You can view the full changes here.