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

fixes dotnet/templating #3807 update subcommand #4045

Merged

Conversation

vlada-shubina
Copy link
Member

Problem

fixes dotnet/templating #3807

Solution

implements update subcommand

Checks:

  • Added unit tests
  • Added #nullable enable to all the modified files ?

@vlada-shubina vlada-shubina requested a review from a team as a code owner October 22, 2021 09:34
templatePackageManager,
templateInformationCoordinator);

return await templatePackageCoordinator.EnterUpdateFlowAsync(args, context.GetCancellationToken()).ConfigureAwait(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for async/await

Copy link
Member Author

Choose a reason for hiding this comment

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

Same thing with templatePackageManager: we should await due to using. Forgot comment :)

this.AddOption(CheckOnlyOption);
}

internal Option<bool> CheckOnlyOption { get; } = new("--check-only")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we consider "--dry-run"? Are there similar options in .NET SDK we could use same option?

Copy link
Member Author

Choose a reason for hiding this comment

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

tool and workload doesn't have this feature, anything else?
I think we need to double check this name anyway, my first option was just --check but I'm not sure how clear it is. I will add --dry-run alias.

@vlada-shubina vlada-shubina merged commit 1449a0a into dotnet:feature/system-command-line Oct 25, 2021
@vlada-shubina vlada-shubina deleted the update branch October 25, 2021 08:15
vlada-shubina added a commit to vlada-shubina/templating that referenced this pull request Nov 22, 2021
vlada-shubina added a commit that referenced this pull request Nov 26, 2021
* fixes dotnet/templating #3807 update subcommand
vlada-shubina added a commit that referenced this pull request Dec 21, 2021
* fixes dotnet/templating #3807 update subcommand
vlada-shubina added a commit to vlada-shubina/templating that referenced this pull request Dec 23, 2021
vlada-shubina added a commit that referenced this pull request Jan 11, 2022
* fixes dotnet/templating #3807 update subcommand
vlada-shubina added a commit that referenced this pull request Jan 27, 2022
* fixes dotnet/templating #3807 update subcommand
vlada-shubina added a commit that referenced this pull request Jan 28, 2022
* fixes dotnet/templating #3807 update subcommand
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.

3 participants