Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
refactor: align display
Browse files Browse the repository at this point in the history
  • Loading branch information
profclems committed Aug 12, 2020
1 parent f643dbf commit 7bc01e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions commands/pipeline_status.go
Expand Up @@ -14,16 +14,16 @@ import (
)

var pipelineStatusCmd = &cobra.Command{
Use: "status <command> [flags]",
Short: `Check the status of a single pipeline`,
Use: "status [flags]",
Short: `View a running pipeline on `,
Aliases: []string{"stats"},
Example: heredoc.Doc(`
$ glab pipeline status 177883
$ glab pipeline status --live
$ glab pipeline status --branch=master // Get pipeline for master branch
$ glab pipe status // Get pipeline for current branch
`),
Long: ``,
Args: cobra.ExactArgs(0),
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 0 {
cmdErr(cmd, args)
Expand Down
4 changes: 3 additions & 1 deletion commands/pipeline_view.go
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/xanzy/go-gitlab"
"glab/internal/git"
"glab/internal/manip"
"glab/internal/utils"
"io"
"io/ioutil"
"log"
Expand All @@ -21,6 +22,7 @@ var pipelineViewCmd = &cobra.Command{
$ glab pipeline view 177883
`),
Long: ``,
Args: cobra.ExactArgs(1),
Run: viewPipelines,
}

Expand Down Expand Up @@ -274,7 +276,7 @@ func updatePipelineLog(v *gocui.View, jid int) {
if b, err := ioutil.ReadAll(getPipelineJobLog(jid)); err == nil {
str = string(b)
}
str, _ = manip.RenderMarkdown(str)
str, _ = utils.RenderMarkdown(str)
fmt.Fprintln(v, str)
//updatePipelineLog(v, jid)
}
Expand Down

0 comments on commit 7bc01e8

Please sign in to comment.