func init()

in tools/mconnect/commands/groups/groups.go [227:243]


func init() {
	createGroupsCmd := NewCreateGroupsCmd(&mcGroupCreator{})
	// Required flags.
	createGroupsCmd.Flags().StringVar(&projectID, "project", "", `The project-id in which to create the Migration Center groups. Make sure to use the same Project ID for every command. (required)`)
	createGroupsCmd.MarkFlagRequired("project")
	createGroupsCmd.Flags().StringVar(&path, "path", "", `The csv file's path which contains CAST's report (analysisResults.csv). (required)`)
	createGroupsCmd.MarkFlagRequired("path")
	createGroupsCmd.Flags().StringVar(&region, "region", "", `The Migration Center region in which the groups will be created. (required)`)
	createGroupsCmd.MarkFlagRequired("region")

	// Optional flags.
	createGroupsCmd.Flags().BoolVarP(&ignoreExistingGroups, "ignore-existing-groups", "i", false, `Continue if mconnect is trying to create a group that already exists in Migration Center.
If set to 'true', the 'mconnect' label will be added to every group that already exists as well.`)
	createGroupsCmd.Flags().StringVar(&endpoint, "mc-endpoint", "", `The endpoint Migration Centers client will use.`)
	createGroupsCmd.Flags().MarkHidden("mc-endpoint")
	root.RootCmd.AddCommand(createGroupsCmd)
}