(cmd *cobra.Command, args []string)
| 759 | } |
| 760 | |
| 761 | func runCodeBuildCommand(cmd *cobra.Command, args []string) { |
| 762 | for _, profile := range AWSProfiles { |
| 763 | sharedServiceMap := &awsservicemap.AwsServiceMap{ |
| 764 | JsonFileSource: "DOWNLOAD_FROM_AWS", |
| 765 | } |
| 766 | var AWSConfig = internal.AWSConfigFileLoader(profile, cmd.Root().Version, AWSMFAToken) |
| 767 | caller, err := internal.AWSWhoami(profile, cmd.Root().Version, AWSMFAToken) |
| 768 | if err != nil { |
| 769 | continue |
| 770 | } |
| 771 | m := aws.CodeBuildModule{ |
| 772 | CodeBuildClient: codebuild.NewFromConfig(AWSConfig), |
| 773 | Caller: *caller, |
| 774 | AWSRegions: internal.GetEnabledRegions(profile, cmd.Root().Version, AWSMFAToken), |
| 775 | AWSProfile: profile, |
| 776 | Goroutines: Goroutines, |
| 777 | SkipAdminCheck: AWSSkipAdminCheck, |
| 778 | WrapTable: AWSWrapTable, |
| 779 | AWSOutputType: AWSOutputType, |
| 780 | AWSTableCols: AWSTableCols, |
| 781 | PmapperDataBasePath: PmapperDataBasePath, |
| 782 | ServiceMap: sharedServiceMap, |
| 783 | } |
| 784 | m.PrintCodeBuildProjects(AWSOutputDirectory, Verbosity) |
| 785 | } |
| 786 | } |
| 787 | |
| 788 | func runDatabasesCommand(cmd *cobra.Command, args []string) { |
| 789 | for _, profile := range AWSProfiles { |
nothing calls this directly
no test coverage detected