Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/dev/preview/previewctl/cmd/list_previews.go
2500 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package cmd
6
7
import (
8
"github.com/sirupsen/logrus"
9
"github.com/spf13/cobra"
10
)
11
12
func newListPreviewsCmd(logger *logrus.Logger) *cobra.Command {
13
cmd := &cobra.Command{
14
Use: "list",
15
Short: "List all existing Config Environments.",
16
}
17
18
cmd.AddCommand(
19
newListWorkspacesCmd(logger),
20
newListStaleCmd(logger),
21
)
22
23
return cmd
24
}
25
26