You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: download_macos.go
    path of file: ./repos/ipsw/cmd/ipsw/cmd/download
    
    the code of the file until where you have to start completion: /*
Copyright © 2018-2024 blacktop

Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw
    
func init() {
	DownloadCmd.AddCommand(macosCmd)

	macosCmd.Flags().BoolP("list", "l", false, "Show latest macOS installers")
	macosCmd.Flags().StringP("work-dir", "w", "", "macOS installer creator working directory")
	macosCmd.Flags().Bool("ignore", false, "Do NOT verify pkg digests")
	macosCmd.Flags().BoolP("assistant", "a", false, "Only download the InstallAssistant.pkg")
	macosCmd.Flags().Bool("latest", false, "Download latest macOS installer")
	// macosCmd.Flags().BoolP("kernel", "k", false, "Extract kernelcache from remote installer")
	macosCmd.SetHelpFunc(func(c *cobra.Command, s []string) {
		DownloadCmd.PersistentFlags().MarkHidden("white-list")
		DownloadCmd.PersistentFlags().MarkHidden("black-list")
		DownloadCmd.PersistentFlags().MarkHidden("device")
		DownloadCmd.PersistentFlags().MarkHidden("model")
		c.Parent().HelpFunc()(c, s)
	})
	viper.BindPFlag("download.macos.list", macosCmd.Flags().Lookup("list"))
	viper.BindPFlag("download.macos.work-dir", macosCmd.Flags().Lookup("work-dir"))
	viper.BindPFlag("download.macos.ignore", macosCmd.Flags().Lookup("ignore"))
	viper.BindPFlag("download.macos.assistant", macosCmd.Flags().Lookup("assistant"))
	viper.BindPFlag("download.macos.latest", macosCmd.Flags().Lookup("latest"))
	// viper.BindPFlag("download.macos.kernel", macosCmd.Flags().Lookup("kernel"))
}