Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProjectsListCmd = &cobra.Command{ Use: "list", Aliases: []string{"ls"}, Short: "List projects", Long: "List all projects associated with the default workspace", RunE: func(cmd *cobra.Command, args []string) error { token, workspaceId, err := utils.GetConfig() if err != nil { return fmt.Errorf("failed to get configuration: %w", err) } client := api.NewAPIClient(token) return ProjectListOutput(client, workspaceId) }, }
Functions ¶
func ProjectListOutput ¶
func ProjectListOutput(client api.ProjectService, workspaceId int) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.