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

Colors #349

Merged
merged 6 commits into from
Dec 22, 2017
Merged

Colors #349

merged 6 commits into from
Dec 22, 2017

Conversation

MattAWright
Copy link
Contributor

Made some fixes after running through QA checklist. Fixed bug in project retrieval, added output to list when no secrets are available.

Fixes #346
Fixes #348
Fixes #347

cmd/list.go Outdated
@@ -290,7 +245,8 @@ func listCmd(ctx *cli.Context) error {
}
}
w.Flush()
fmt.Println("")

fmt.Printf("\n(%d) secrets found\n.", credCount)
Copy link
Contributor

Choose a reason for hiding this comment

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

We could add some color to the number (light gray?)

cmd/list.go Outdated
@@ -262,8 +216,8 @@ func listCmd(ctx *cli.Context) error {
if(verbose){
fmt.Println("")
projW := ansiterm.NewTabWriter(os.Stdout, 0, 0, 4, ' ', 0)
fmt.Fprintf(projW, "Org:\t" + ui.Faint(orgName) + "\t\n")
fmt.Fprintf(projW, "Project:\t" + ui.Faint(projectName) + "\t\n")
fmt.Fprintf(projW, "Org:\t" + ui.Faint(org.Body.Name) + "\t\n")
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably bold org and project?

@ianlivingstone ianlivingstone merged commit f4eb49c into manifoldco:master Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Colourize torus policies Bug - torus list produces empty output if no secrets set
2 participants