Browse Source

Cleanup spelling (#217)

pull/220/head
Simon Cropp 7 years ago
committed by GitHub
parent
commit
da6c6ca544
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Microsoft.Tye.Core/ApplicationFactory.cs
  2. 2
      src/Microsoft.Tye.Core/ComputedBindings.cs
  3. 2
      src/Microsoft.Tye.Core/ConfigModel/ConfigApplication.cs
  4. 4
      src/Microsoft.Tye.Core/ProjectReader.cs
  5. 2
      src/Microsoft.Tye.Core/StandardOptions.cs
  6. 2
      src/Microsoft.Tye.Core/ValidateSecretStep.cs
  7. 4
      src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs
  8. 2
      src/Microsoft.Tye.Hosting.Diagnostics/Logging/LogValuesFormatter.cs
  9. 2
      test/E2ETest/DockerAssert.cs

2
src/Microsoft.Tye.Core/ApplicationFactory.cs

@ -47,7 +47,7 @@ namespace Microsoft.Tye
await ProjectReader.ReadProjectDetailsAsync(output, project); await ProjectReader.ReadProjectDetailsAsync(output, project);
// We don't apply more container defaults here because we might need // We don't apply more container defaults here because we might need
// to prompty for the registry name. // to promptly for the registry name.
project.ContainerInfo = new ContainerInfo() project.ContainerInfo = new ContainerInfo()
{ {
UseMultiphaseDockerfile = false, UseMultiphaseDockerfile = false,

2
src/Microsoft.Tye.Core/ComputedBindings.cs

@ -41,7 +41,7 @@ namespace Microsoft.Tye
public string Name { get; } public string Name { get; }
public string? Value { get; } public string? Value { get; }
// Used to map the secret to a key that ASP.NET Core understandes // Used to map the secret to a key that ASP.NET Core understands
public string Filename { get; } public string Filename { get; }
// Used for informational purposes // Used for informational purposes

2
src/Microsoft.Tye.Core/ConfigModel/ConfigApplication.cs

@ -12,7 +12,7 @@ namespace Microsoft.Tye.ConfigModel
{ {
// General design note re: nullability - we use [Required] to validate for non-null // General design note re: nullability - we use [Required] to validate for non-null
// so we use = default! to reflect that. Code that creates a ConfigApplication should // so we use = default! to reflect that. Code that creates a ConfigApplication should
// validate it before deferencing the properties. // validate it before dereferencing the properties.
public class ConfigApplication public class ConfigApplication
{ {
// This gets set by all of the code paths that read the application // This gets set by all of the code paths that read the application

4
src/Microsoft.Tye.Core/ProjectReader.cs

@ -101,7 +101,7 @@ namespace Microsoft.Tye
// Using the project as the working directory. We're making the assumption that // Using the project as the working directory. We're making the assumption that
// all of the projects want to use the same SDK version. This library is going // all of the projects want to use the same SDK version. This library is going
// load a single version of the SDK's assemblies into our process, so we can't // load a single version of the SDK's assemblies into our process, so we can't
// use supprt SDKs at once without getting really tricky. // use support SDKs at once without getting really tricky.
// //
// The .NET SDK-based discovery uses `dotnet --info` and returns the SDK // The .NET SDK-based discovery uses `dotnet --info` and returns the SDK
// in use for the directory. // in use for the directory.
@ -188,7 +188,7 @@ namespace Microsoft.Tye
AssemblyLoadContext.Default.Resolving -= ResolveAssembly; AssemblyLoadContext.Default.Resolving -= ResolveAssembly;
} }
// Reading both InformationalVersion and Version is more resilant in the face of build failures. // Reading both InformationalVersion and Version is more resilient in the face of build failures.
var version = projectInstance.GetProperty("InformationalVersion")?.EvaluatedValue ?? projectInstance.GetProperty("Version").EvaluatedValue; var version = projectInstance.GetProperty("InformationalVersion")?.EvaluatedValue ?? projectInstance.GetProperty("Version").EvaluatedValue;
project.Version = version; project.Version = version;
output.WriteDebugLine($"Found application version: {version}"); output.WriteDebugLine($"Found application version: {version}");

2
src/Microsoft.Tye.Core/StandardOptions.cs

@ -19,7 +19,7 @@ namespace Microsoft.Tye
{ {
get get
{ {
return new Option(new[] { "-e", "--environment" }, "Environemnt") return new Option(new[] { "-e", "--environment" }, "Environment")
{ {
Argument = new Argument<string>("environment", () => "production") Argument = new Argument<string>("environment", () => "production")
{ {

2
src/Microsoft.Tye.Core/ValidateSecretStep.cs

@ -92,7 +92,7 @@ namespace Microsoft.Tye
$"kubectl create secret generic {secretInputBinding.Name} --from-literal=connectionstring=<value>"); $"kubectl create secret generic {secretInputBinding.Name} --from-literal=connectionstring=<value>");
} }
// If we get here then we should create the sceret. // If we get here then we should create the secret.
var text = output.Prompt($"Enter the connection string to use for service '{secretInputBinding.Service.Name}'", allowEmpty: true); var text = output.Prompt($"Enter the connection string to use for service '{secretInputBinding.Service.Name}'", allowEmpty: true);
if (string.IsNullOrWhiteSpace(text)) if (string.IsNullOrWhiteSpace(text))
{ {

4
src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs

@ -252,7 +252,7 @@ namespace Microsoft.Tye.Hosting.Diagnostics
{ {
var source = new EventPipeEventSource(session.EventStream); var source = new EventPipeEventSource(session.EventStream);
// Distribued Tracing // Distributed Tracing
HandleDistributedTracingEvents(source, processor); HandleDistributedTracingEvents(source, processor);
// Metrics // Metrics
@ -851,7 +851,7 @@ namespace Microsoft.Tye.Hosting.Diagnostics
internal sealed class LoggingEventSource internal sealed class LoggingEventSource
{ {
/// <summary> /// <summary>
/// This is public from an EventSource consumer point of view, but since these defintions /// This is public from an EventSource consumer point of view, but since these definitions
/// are not needed outside this class /// are not needed outside this class
/// </summary> /// </summary>
public static class Keywords public static class Keywords

2
src/Microsoft.Tye.Hosting.Diagnostics/Logging/LogValuesFormatter.cs

@ -15,7 +15,7 @@ using System.Text;
namespace Microsoft.Tye.Hosting.Diagnostics.Logging namespace Microsoft.Tye.Hosting.Diagnostics.Logging
{ {
/// <summary> /// <summary>
/// Formatter to convert the named format items like {NamedformatItem} to <see cref="M:string.Format"/> format. /// Formatter to convert the named format items like {NamedFormatItem} to <see cref="M:string.Format"/> format.
/// </summary> /// </summary>
internal class LogValuesFormatter internal class LogValuesFormatter
{ {

2
test/E2ETest/DockerAssert.cs

@ -15,7 +15,7 @@ namespace E2ETest
public static class DockerAssert public static class DockerAssert
{ {
// Repository is the "registry/image" format. Yeah Docker uses that term for it, and it's // Repository is the "registry/image" format. Yeah Docker uses that term for it, and it's
// wierd and confusing. // weird and confusing.
public static async Task AssertImageExistsAsync(ITestOutputHelper output, string repository) public static async Task AssertImageExistsAsync(ITestOutputHelper output, string repository)
{ {
var builder = new StringBuilder(); var builder = new StringBuilder();

Loading…
Cancel
Save