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

Addresses issue #102 #103

Closed
wants to merge 1 commit into from
Closed

Conversation

maximilien
Copy link
Contributor

Changes service delete output to be nicer to something like:

Service 'hello' in namespace 'default' deleted

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: maximilien
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: sixolet

If they are not already assigned, you can assign the PR to them by writing /assign @sixolet in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 10, 2019
@@ -53,7 +53,7 @@ func NewServiceDeleteCommand(p *KnParams) *cobra.Command {
if err != nil {
return err
}
fmt.Fprintf(cmd.OutOrStdout(), "Deleted %s in %s namespace.\n", args[0], namespace)
fmt.Fprintf(cmd.OutOrStdout(), "Deleted '%s' in '%s' namespace.\n", args[0], namespace)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we please add 'service' as extra context info (as this is easier to detect e.g. when grepping in logs when this output is redirected) ? Also, would prefer to have "namespace" before the actual namespace (as this is the usual order: in message.

I.e. Deleted service '%s' in namespace '%s'

Whether to add punctuation or not should be follow a common convention over all messages (not sure how it is in the client).

@navidshaikh
Copy link
Collaborator

This is addressed in PR #95.

@maximilien
Copy link
Contributor Author

Closing since already addressed in #95

@maximilien maximilien closed this May 14, 2019
@maximilien maximilien deleted the issue102 branch December 20, 2019 02:18
dsimansk pushed a commit to dsimansk/client that referenced this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants