MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / init

Function init

cmd/pricing.go:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25)
26
27func 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
36func runPricing(cmd *cobra.Command, args []string) error {
37 if len(pricingProducts) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected