()
| 25 | ) |
| 26 | |
| 27 | func init() { |
| 28 | pricingCmd.Flags().StringArrayVarP(&pricingProducts, "products", "p", nil, "Product filters e.g. \"AWS EC2\"") |
| 29 | pricingCmd.Flags().StringArrayVarP(&pricingRegions, "regions", "r", nil, "Region filters e.g. us-east-1") |
| 30 | pricingCmd.Flags().StringArrayVarP(&pricingAttrs, "attrs", "a", nil, "Attribute filters e.g. instanceType=t3.micro") |
| 31 | pricingCmd.Flags().StringArrayVar(&pricingPrices, "price", nil, "Price filters e.g. \"<0.1\"") |
| 32 | pricingCmd.Flags().IntVarP(&pricingLimit, "limit", "l", 20, "Maximum results to show") |
| 33 | pricingCmd.Flags().StringVarP(&pricingOutput, "output", "o", "table", "Output format: table or json") |
| 34 | } |
| 35 | |
| 36 | func runPricing(cmd *cobra.Command, args []string) error { |
| 37 | if len(pricingProducts) == 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected