Skip to content

System.CommandLine documentation - #28072

Merged
tdykstra merged 41 commits into
dotnet:mainfrom
tdykstra:scl1
Mar 9, 2022
Merged

tdykstra merged 41 commits into
dotnet:mainfrom
tdykstra:scl1

Conversation

@tdykstra

@tdykstra tdykstra commented Feb 3, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #25030
Fixes #27339

File Type File Name Published Url
Content docs/standard/commandline/index.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/index?branch=pr-en-us-28072
Content docs/standard/commandline/get-started-tutorial.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/get-started-tutorial?branch=pr-en-us-28072
Content docs/standard/commandline/syntax.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/syntax?branch=pr-en-us-28072
Content docs/standard/commandline/define-commands.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/define-commands?branch=pr-en-us-28072
Content docs/standard/commandline/model-binding.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/model-binding?branch=pr-en-us-28072
Content docs/azure/sdk/dependency-injection.md https://review.docs.microsoft.com/en-us/dotnet/azure/sdk/dependency-injection?branch=pr-en-us-28072
Content docs/standard/commandline/customize-help.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/customize-help?branch=pr-en-us-28072
Content docs/standard/commandline/dependency-injection.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/dependency-injection?branch=pr-en-us-28072
Content docs/standard/commandline/handle-termination.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/handle-termination?branch=pr-en-us-28072
Content docs/standard/commandline/tab-completion.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/tab-completion?branch=pr-en-us-28072
Content docs/standard/commandline/use-middleware.md https://review.docs.microsoft.com/en-us/dotnet/standard/commandline/use-middleware?branch=pr-en-us-28072

@tdykstra
tdykstra requested a review from gewarren as a code owner February 22, 2022 22:39
Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved
@tdykstra tdykstra changed the title WIP: System.CommandLine documentation System.CommandLine documentation Mar 3, 2022

@KathleenDollard KathleenDollard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Preserving this much of my review

@KathleenDollard KathleenDollard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Partial review

Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved

@KathleenDollard KathleenDollard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

More partial review

@KathleenDollard KathleenDollard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wow, this a great, and large, piece of work! Awesome.

I had a number of comments, but they are all small. Let's use tomorrow's meeting to resolve any of these that are not easy to resolve, and I will approve once we've settled this.

Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread docs/standard/commandline/syntax.md Resolved
6.0.100
```

## Response files

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jonsequitur Please review this section based on the recent/planned changes.

Comment thread docs/standard/commandline/syntax.md Resolved
Comment thread includes/cli-aliases.md Resolved
@gewarren

gewarren commented Mar 8, 2022

Copy link
Copy Markdown
Collaborator

Should we replace occurrences of "How to do dependency injection" with "How to configure dependency injection"?

@tdykstra

tdykstra commented Mar 8, 2022

Copy link
Copy Markdown
Contributor Author

@gewarren Yes that sounds better. 😄

@baronfel

baronfel commented Mar 8, 2022

Copy link
Copy Markdown
Member

Top-level question - I noticed that a getting started sample's binary output had been committed as part of this changeset - was that intended? I'm not used to seeing raw compiled outputs committed to source control.

</ItemGroup>

<ItemGroup>
<None Update="sampleQuotes.txt">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might be simpler to represent this as a <Content Include="sampleQuotes.txt">? Content items are included in the output directory by default.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When I change to content include and build the app, sampleQuotes.txt doesn't show up in bin/debug/net6.0.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It works with content include if I keep the CopyAlways line.

@tdykstra

tdykstra commented Mar 9, 2022

Copy link
Copy Markdown
Contributor Author

Top-level question - I noticed that a getting started sample's binary output had been committed as part of this changeset - was that intended? I'm not used to seeing raw compiled outputs committed to source control.

Good question, I would have expected the gitignore to keep those out of the PR. I don't know why they're there.

@KathleenDollard KathleenDollard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A couple of dangling things.

  • I had some possible alternate text, all of which you may accept or reject based on how you think it should be. I did not resolve these.
  • There is an apparent typo of Read vs Red - marked in an unresolved comment.
  • I believe there is typo of a slash, marked with an unresolved comment. If that is not a typo, just resolve the comment.
  • Chet had a suggestion for an alternate way to copy to the build output directory. I think we can use your approach, and follow up later as to why the alternative did not work.

Since it is just down to these small items. I am going to approve, but please check on those two potential typos.

@tdykstra
tdykstra merged commit a9c5fe3 into dotnet:main Mar 9, 2022
@tdykstra
tdykstra deleted the scl1 branch March 9, 2022 17:42
@tdykstra tdykstra added the okr-freshness OKR: Freshness of content label Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Links to command line argument parsing Document System.CommandLine library

6 participants