Skip to content

Commit

Permalink
fixup! add "release create" command
Browse files Browse the repository at this point in the history
  • Loading branch information
fho committed May 28, 2024
1 parent 927f5da commit 55cc2b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/command/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"github.com/spf13/cobra"
)

var releaseCMd = &cobra.Command{
var releaseCmd = &cobra.Command{
Use: "release",
Short: "manage releases",
}

func init() {
rootCmd.AddCommand(releaseCMd)
rootCmd.AddCommand(releaseCmd)
}
8 changes: 4 additions & 4 deletions internal/command/release_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type releaseCreateCmd struct {
}

func init() {
releaseCMd.AddCommand(&newReleaseCreateCmd().Command)
releaseCmd.AddCommand(&newReleaseCreateCmd().Command)
}

func newReleaseCreateCmd() *releaseCreateCmd {
Expand Down Expand Up @@ -180,11 +180,11 @@ func (c *releaseCreateCmd) mustFetchTaskIDs(
for _, task := range tasks {
status, _, taskRun, err := statusMgr.Status(ctx, task)
if err != nil {
stdout.Println("")
stdout.Println()
exitOnErrf(err, "%s: evaluating task status failed", task)
}
if status != baur.TaskStatusRunExist {
stdout.Println("")
stdout.Println()
stderr.PrintErrf("%s: task status is %s, expecting %s\n",
task.ID, status, baur.TaskStatusRunExist)
exitFunc(exitCodeTaskRunIsPending)
Expand All @@ -194,7 +194,7 @@ func (c *releaseCreateCmd) mustFetchTaskIDs(
runIDs = append(runIDs, taskRun.ID)

}
stdout.Println("")
stdout.Println()

return runIDs
}

0 comments on commit 55cc2b4

Please sign in to comment.