-
Notifications
You must be signed in to change notification settings - Fork 296
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
Improve README.md with better example and descriptions. #250
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns 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 |
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.
Think there might be a mixup around the creating and deleting sections, otherwise looks good!
## Generating code | ||
### Listing Objects | ||
```c# | ||
var namespaces = client.ListNamespace(); |
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.
Nitpick: We should prefer showing the async methods to the blocking ones. It is easy to translate in either direction of course, but we should set the expectation that async is the 'normal' way to do it.
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.
the examples are all sync right now. Let's do this in a separate PR.
README.md
Outdated
var result = client.CreateNamespace(ns); | ||
Console.WriteLine(result); | ||
|
||
var result = client.CreateNamespace(ns); |
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.
Not clear why you're doing this twice. Is it a copypasta, or are you intending to show the behaviour if a user creates an already-created resource? If the latter then suggest commenting it to explain the expected output.
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.
Actually I think it must be a copypasta because redeclaring result
won't compile will it?
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.
yep, copy/paste
README.md
Outdated
``` | ||
|
||
# Usage | ||
### Deleting Objects |
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.
Covered under Creating and Deleting Objects
or did you mean to move the delete code from there to under here?
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.
oops. fixed.
README.md
Outdated
``` | ||
|
||
# Usage | ||
### Deleting Objects | ||
```c# |
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.
Possible unclosed Markdown tag?
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.
fixed.
@itowlson friendly ping on this one :) |
@itowlson pingity ping ping :) Thanks! |
Fixes #249