-
Notifications
You must be signed in to change notification settings - Fork 152
Added permissions scw info
#195
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
Conversation
} | ||
fmt.Fprintln(ctx.Stdout, "Permissions:") | ||
for _, service := range permissions.Permissions { | ||
for key, service_name := range service { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use underscores in Go names; range var service_name should be serviceName
} | ||
} | ||
fmt.Fprintf(ctx.Stdout, "\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add a space between the two sections
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM |
@@ -59,9 +59,10 @@ func RunInfo(ctx CommandContext, args InfoArgs) error { | |||
if err != nil { | |||
return err | |||
} else { | |||
fmt.Fprintf(ctx.Stdout, " [%d] %s\n", id, fingerprint) | |||
fmt.Fprintf(ctx.Stdout, " [%d] %s", id, fingerprint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you removed the \n
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because fingerprint has already a \n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok LGTM
Added permissions `scw info`
#191