Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workflow name to recent builds #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module github.com/jszwedko/circleci-cli

go 1.17

require (
github.com/codegangsta/cli v1.18.1-0.20161113233518-b4f4786f378c
github.com/fatih/color v1.1.1-0.20161025120501-bf82308e8c85
github.com/jszwedko/go-circleci v0.0.0-20160911223459-615d5d968cf4
)

require (
github.com/mattn/go-colorable v0.0.7 // indirect
github.com/mattn/go-isatty v0.0.0-20160806122752-66b8e73f3f5c // indirect
golang.org/x/sys v0.0.0-20211103235746-7861aae1554b // indirect
)
12 changes: 12 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
github.com/codegangsta/cli v1.18.1-0.20161113233518-b4f4786f378c h1:9ZZdTWHWRqEVg9LxfND5Jt/QYiVFIrzJZRYLaRNWDvk=
github.com/codegangsta/cli v1.18.1-0.20161113233518-b4f4786f378c/go.mod h1:/qJNoX69yVSKu5o4jLyXAENLRyk1uhi7zkbQ3slBdOA=
github.com/fatih/color v1.1.1-0.20161025120501-bf82308e8c85 h1:FvdRGnDEscqSP1EedtRtA83DFuWYR3Wv4EF9vlgCAdU=
github.com/fatih/color v1.1.1-0.20161025120501-bf82308e8c85/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/jszwedko/go-circleci v0.0.0-20160911223459-615d5d968cf4 h1:M5yKysqPcWbUWbpGoSx+xoEuw5m76t5TcyQiD7tNl6o=
github.com/jszwedko/go-circleci v0.0.0-20160911223459-615d5d968cf4/go.mod h1:z1630OiB7oGxZwE90het04Ld7rIu0AKvY9JCRnaBdoE=
github.com/mattn/go-colorable v0.0.7 h1:zh4kz16dcPG+l666m12h0+dO2HGnQ1ngy7crMErE2UU=
github.com/mattn/go-colorable v0.0.7/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.0-20160806122752-66b8e73f3f5c h1:3nKFouDdpgGUV/uerJcYWH45ZbJzX0SiVWfTgmUeTzc=
github.com/mattn/go-isatty v0.0.0-20160806122752-66b8e73f3f5c/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
golang.org/x/sys v0.0.0-20211103235746-7861aae1554b h1:1VkfZQv42XQlA/jchYumAnv1UPo6RgF9rJFkTgZIxO4=
golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ func main() {
},
},
{
Name: "recent-builds",
Aliases: []string{"recent"},
Name: "recent",
Aliases: []string{"r"},
Comment on lines -244 to +245
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we leave the existing subcommand and add a new one for showing recent workflows?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can create a new command for sure.

Usage: "Recent builds for the current project",
Flags: []cli.Flag{
cli.IntFlag{
Expand Down Expand Up @@ -313,7 +313,7 @@ func main() {

t := tabwriter.NewWriter(os.Stdout, 0, 8, 4, ' ', tabwriter.StripEscape)
for _, build := range builds {
fmt.Fprintf(t, "%s/%s/%d\t%s\t%s\t%s\n", build.Username, build.Reponame, build.BuildNum, statusSprintfFunc(build.Status)("\xff%s\xff", build.Status), build.Branch, build.Subject)
fmt.Fprintf(t, "%s/%d %s\t%s\t%s\t%s\n", build.Reponame, build.BuildNum, build.Workflows.JobName, statusSprintfFunc(build.Status)("\xff%s\xff", build.Status), build.Branch, build.Subject)
}
t.Flush()
},
Expand Down
223 changes: 0 additions & 223 deletions vendor/encoding/json/bench_test.go

This file was deleted.

Loading