25 lines
632 B
Go
25 lines
632 B
Go
package chown
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
Use: "chown [flags] <overlay kind> <overlay name> <path> <UID> [<GID>]",
|
|
Short: "Change file ownership within an overlay",
|
|
Long: "This command will allow you to change the ownership of a file within an\n" +
|
|
"overlay.",
|
|
RunE: CobraRunE,
|
|
Args: cobra.RangeArgs(4, 5),
|
|
}
|
|
NoOverlayUpdate bool
|
|
)
|
|
|
|
func init() {
|
|
baseCmd.PersistentFlags().BoolVarP(&NoOverlayUpdate, "noupdate", "n", false, "Don't update overlays")
|
|
}
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|