add container build after container sync

Signed-off-by: jason yang <xyang@ciq.com>
This commit is contained in:
jason yang
2024-01-25 06:29:12 +00:00
committed by Jonathon Anderson
parent 4a2969f298
commit 4072730172
3 changed files with 22 additions and 0 deletions

View File

@@ -25,10 +25,12 @@ uid/gid collision is detected. File ownerships are also changed.`,
Args: cobra.MinimumNArgs(1),
}
write bool
build bool
)
func init() {
baseCmd.PersistentFlags().BoolVar(&write, "write", false, "Synchronize uis/gids and write files in container")
baseCmd.PersistentFlags().BoolVar(&build, "build", false, "Build container after syncuser is completed")
}
// GetRootCommand returns the root cobra.Command for the application.