Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SetProjectCmd = &cobra.Command{ Use: "set-project <id>", Short: "Set the project ID", Long: `Set the project ID for the Hyphen CLI to use.`, Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { projectID := args[0] var err error if globalFlag { err = manifest.UpsertGlobalProjectID(projectID) } else { err = manifest.UpsertProjectID(projectID) } if err != nil { return fmt.Errorf("failed to update project ID: %w", err) } printProjectUpdateSuccess(projectID, globalFlag) return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.