/
pipeline.go
36 lines (30 loc) · 996 Bytes
/
pipeline.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cli
import (
"github.com/aws/copilot-cli/cmd/copilot/template"
"github.com/aws/copilot-cli/internal/pkg/cli/group"
"github.com/spf13/cobra"
)
// BuildPipelineCmd is the top level command for pipelines
func BuildPipelineCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "pipeline",
Short: `Commands for pipelines.
Continuous delivery pipelines to release services.`,
Long: `Commands for pipelines.
Continuous delivery pipelines to release services.`,
}
cmd.AddCommand(buildPipelineInitCmd())
cmd.AddCommand(buildPipelineOverrideCmd())
cmd.AddCommand(buildPipelineDeployCmd())
cmd.AddCommand(buildPipelineDeleteCmd())
cmd.AddCommand(buildPipelineShowCmd())
cmd.AddCommand(buildPipelineStatusCmd())
cmd.AddCommand(buildPipelineListCmd())
cmd.SetUsageTemplate(template.Usage)
cmd.Annotations = map[string]string{
"group": group.Release,
}
return cmd
}