subscription

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL