Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LinkCmd = &cobra.Command{ Use: "link [subscription]", Short: "Link your project to a subscription", Long: "Link your project to a subscription", Run: func(cmd *cobra.Command, args []string) { err := subscription.Link(args, flags.Acc) if err != nil { if err != api.ErrIronstarAPICall { fmt.Println() color.Red(err.Error()) } os.Exit(1) } color.Green("Successfully linked to project!") }, }
LinkCmd - `iron subscription link [subscription]`
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List available subscriptions", Long: "List all available subscriptions for the user", Run: func(cmd *cobra.Command, args []string) { err := subscription.List(args, flags.Acc) if err != nil { if err != api.ErrIronstarAPICall { fmt.Println() color.Red(err.Error()) } os.Exit(1) } }, }
ListCmd - `iron subscription list`
View Source
var ShowCmd = &cobra.Command{
Use: "show",
Short: "Show linked subscription",
Long: "Show linked subscription",
Run: show,
}
ShowCmd - `iron subscription show`
View Source
var SubCmd = &cobra.Command{ Hidden: true, Use: "sub", Short: "", Long: "", Run: show, }
SubCmd - `iron sub`
View Source
var SubscriptionCmd = &cobra.Command{
Use: "subscription",
Short: "",
Long: "",
Run: show,
}
SubscriptionCmd - `iron subscription`
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.