Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SetProjectCmd = &cobra.Command{ Use: "set-project <id/alternate_id>", Short: "Set the defaultd project", Long: `Set the default project for the Hyphen CLI to use.`, Args: cobra.MaximumNArgs(1), PersistentPreRunE: func(cmd *cobra.Command, args []string) error { return user.ErrorIfNotAuthenticated() }, RunE: func(cmd *cobra.Command, args []string) error { printer = cprint.NewCPrinter(flags.VerboseFlag) organizationID, err := flags.GetOrganizationID() projectID := "" if len(args) > 0 { projectID = args[0] } if err != nil { printer.Error(cmd, fmt.Errorf("failed to get organization ID: %v", err)) return err } return SetProject(cmd, organizationID, projectID) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.