diff --git a/.vscode/launch.json b/.vscode/launch.json
index 3044696f07..d860197f5b 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -181,7 +181,7 @@
"--openapi",
"https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/dev/openApiDocs/v1.0/Mail.yml",
"--language",
- "shell",
+ "cli",
"-o",
"${workspaceFolder}/samples/msgraph-mail/dotnet-cli",
"--clean-output"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b1ad342ed4..c89237d23b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
+- Renamed the Shell language to CLI. [#3023](https://github.com/microsoft/kiota/issues/3023)
+
## [1.5.0] - 2023-08-04
### Added
diff --git a/README.md b/README.md
index 5207901b89..9abff35b2d 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ The following table provides an overview of the languages supported by Kiota and
| PHP | ✔ | [✔](https://github.com/microsoft/kiota-abstractions-php) | [JSON](https://github.com/microsoft/kiota-serialization-json-php), [❌ FORM](https://github.com/microsoft/kiota/issues/2074), [❌ MULTIPART](https://github.com/microsoft/kiota/issues/3029), [TEXT](https://github.com/microsoft/kiota-serialization-text-php) | [Anonymous](https://github.com/microsoft/kiota-abstractions-php/blob/main/src/Authentication/AnonymousAuthenticationProvider.php), [✔️ PHP League](https://github.com/microsoft/kiota-authentication-phpleague-php) | [✔](https://github.com/microsoft/kiota-http-guzzle-php) | [link](https://learn.microsoft.com/openapi/kiota/quickstarts/php) |
| Python | ✔ | [✔](https://github.com/microsoft/kiota-abstractions-python) | [❌ FORM](https://github.com/microsoft/kiota/issues/2075), [JSON](https://github.com/microsoft/kiota-serialization-json-python), [❌ MULTIPART](https://github.com/microsoft/kiota/issues/3030), [TEXT](https://github.com/microsoft/kiota-serialization-text-python) | [Anonymous](https://github.com/microsoft/kiota-abstractions-python/blob/main/kiota_abstractions/authentication/anonymous_authentication_provider.py), [Azure](https://github.com/microsoft/kiota-authentication-azure-python) | [✔](https://github.com/microsoft/kiota-http-python) | [link](https://learn.microsoft.com/openapi/kiota/quickstarts/python) |
| Ruby | ✔ | [✔](https://github.com/microsoft/kiota-abstractions-ruby) | [❌ FORM](https://github.com/microsoft/kiota/issues/2077), [JSON](https://github.com/microsoft/kiota-serialization-json-ruby), [❌ MULTIPART](https://github.com/microsoft/kiota/issues/3032), [❌ TEXT](https://github.com/microsoft/kiota/issues/1049) | [Anonymous](https://github.com/microsoft/kiota-abstractions-ruby/blob/main/lib/microsoft_kiota_abstractions/authentication/anonymous_authentication_provider.rb), [✔️ OAuth2](https://github.com/microsoft/kiota-authentication-oauth-ruby) | [✔](https://github.com/microsoft/kiota-http-ruby)| [link](https://learn.microsoft.com/openapi/kiota/quickstarts/ruby) |
-| Shell | ✔ | (see CSHarp) + [✔](https://github.com/microsoft/kiota-cli-commons) | (see CSHarp) | (see CSharp) | (see CSharp) | [link](https://learn.microsoft.com/openapi/kiota/quickstarts/cli) |
+| CLI | ✔ | (see CSharp) + [✔](https://github.com/microsoft/kiota-cli-commons) | (see CSharp) | (see CSharp) | (see CSharp) | [link](https://learn.microsoft.com/openapi/kiota/quickstarts/cli) |
| Swift | [▶](https://github.com/microsoft/kiota/issues/1449) | [✔](./abstractions/swift) | [❌ FORM](https://github.com/microsoft/kiota/issues/2076), [❌ JSON](https://github.com/microsoft/kiota/issues/1451), [❌ FORM](https://github.com/microsoft/kiota/issues/3033), [❌ TEXT](https://github.com/microsoft/kiota/issues/1452) | [Anonymous](./abstractions/swift/Source/MicrosoftKiotaAbstractions/Authentication/AnonymousAuthenticationProvider.swift), [❌ Azure](https://github.com/microsoft/kiota/issues/1453) | [❌](https://github.com/microsoft/kiota/issues/1454)| |
| TypeScript/JavaScript | ✔ | [✔](https://github.com/microsoft/kiota-typescript/tree/main/packages/abstractions) | [FORM](https://github.com/microsoft/kiota-typescript/tree/main/packages/serialization/form), [JSON](https://github.com/microsoft/kiota-typescript/tree/main/packages/serialization/json), [MULTIPART](https://github.com/microsoft/kiota-typescript/tree/main/packages/serialization/multipart), [TEXT](https://github.com/microsoft/kiota-typescript/tree/main/packages/serialization/text) | [Anonymous](https://github.com/microsoft/kiota-typescript/blob/main/packages/abstractions/src/authentication/anonymousAuthenticationProvider.ts), [API Key](https://github.com/microsoft/kiota-typescript/blob/main/packages/abstractions/src/authentication/apiKeyAuthenticationProvider.ts), [Azure](https://github.com/microsoft/kiota-typescript/tree/main/packages/authentication/azure) | [✔](https://github.com/microsoft/kiota-typescript/tree/main/packages/http/fetch) | [link](https://learn.microsoft.com/openapi/kiota/quickstarts/typescript) |
diff --git a/scripts/update-versions.ps1 b/scripts/update-versions.ps1
index 294a859edc..2cfd4e5370 100644
--- a/scripts/update-versions.ps1
+++ b/scripts/update-versions.ps1
@@ -113,7 +113,7 @@ $appSettings = Get-Content -Path $mainSettings -Raw | ConvertFrom-Json
foreach ($languageName in ($appSettings.Languages | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name | Sort-Object)) {
$language = $appSettings.Languages.$languageName
- if ($languageName -eq "CSharp" -or $languageName -eq "Shell") {
+ if ($languageName -eq "CSharp" -or $languageName -eq "CLI") {
foreach ($dependency in $language.Dependencies) {
Retry-Command -ScriptBlock {
$latestVersion = Get-LatestNugetVersion -packageId $dependency.Name
diff --git a/src/Kiota.Builder/CodeDOM/CodeMethod.cs b/src/Kiota.Builder/CodeDOM/CodeMethod.cs
index eeb316bf16..4109ab0ca7 100644
--- a/src/Kiota.Builder/CodeDOM/CodeMethod.cs
+++ b/src/Kiota.Builder/CodeDOM/CodeMethod.cs
@@ -164,7 +164,7 @@ public PagingInformation? PagingInformation
///
/// The combination of the path, query and header parameters for the current URL.
- /// Only use this property if the language you are generating for doesn't support fluent API style (e.g. Shell/CLI)
+ /// Only use this property if the language you are generating for doesn't support fluent API style (e.g. CLI)
///
public IEnumerable PathQueryAndHeaderParameters
{
diff --git a/src/Kiota.Builder/GenerationLanguage.cs b/src/Kiota.Builder/GenerationLanguage.cs
index 530aa921d3..dbd236ade7 100644
--- a/src/Kiota.Builder/GenerationLanguage.cs
+++ b/src/Kiota.Builder/GenerationLanguage.cs
@@ -1,13 +1,13 @@
-namespace Kiota.Builder;
-public enum GenerationLanguage
-{
- CSharp,
- Java,
- TypeScript,
- PHP,
- Python,
- Go,
- Swift,
- Ruby,
- Shell
-}
+namespace Kiota.Builder;
+public enum GenerationLanguage
+{
+ CSharp,
+ Java,
+ TypeScript,
+ PHP,
+ Python,
+ Go,
+ Swift,
+ Ruby,
+ CLI
+}
diff --git a/src/Kiota.Builder/KiotaBuilder.cs b/src/Kiota.Builder/KiotaBuilder.cs
index fa9d03ccea..5e500c0134 100644
--- a/src/Kiota.Builder/KiotaBuilder.cs
+++ b/src/Kiota.Builder/KiotaBuilder.cs
@@ -1263,7 +1263,7 @@ private void CreateOperationMethods(OpenApiUrlTreeNode currentNode, OperationTyp
var mediaType = operation.Responses.Values.SelectMany(static x => x.Content).First(x => x.Value.Schema == schema).Key;
generatorMethod.AcceptedResponseTypes.Add(mediaType);
}
- if (config.Language == GenerationLanguage.Shell)
+ if (config.Language == GenerationLanguage.CLI)
SetPathAndQueryParameters(generatorMethod, currentNode, operation);
AddRequestBuilderMethodParameters(currentNode, operationType, operation, requestConfigClass, generatorMethod);
parentClass.AddMethod(generatorMethod);
diff --git a/src/Kiota.Builder/Refiners/ShellRefiner.cs b/src/Kiota.Builder/Refiners/CliRefiner.cs
similarity index 99%
rename from src/Kiota.Builder/Refiners/ShellRefiner.cs
rename to src/Kiota.Builder/Refiners/CliRefiner.cs
index f500113aa9..eda48e2c15 100644
--- a/src/Kiota.Builder/Refiners/ShellRefiner.cs
+++ b/src/Kiota.Builder/Refiners/CliRefiner.cs
@@ -8,12 +8,12 @@
using Kiota.Builder.Extensions;
namespace Kiota.Builder.Refiners;
-public class ShellRefiner : CSharpRefiner, ILanguageRefiner
+public class CliRefiner : CSharpRefiner, ILanguageRefiner
{
private static readonly CodePropertyKind[] UnusedPropKinds = new[] { CodePropertyKind.RequestAdapter };
private static readonly CodeParameterKind[] UnusedParamKinds = new[] { CodeParameterKind.RequestAdapter };
private static readonly CodeMethodKind[] ConstructorKinds = new[] { CodeMethodKind.Constructor, CodeMethodKind.ClientConstructor, CodeMethodKind.RawUrlConstructor };
- public ShellRefiner(GenerationConfiguration configuration) : base(configuration) { }
+ public CliRefiner(GenerationConfiguration configuration) : base(configuration) { }
public override Task Refine(CodeNamespace generatedCode, CancellationToken cancellationToken)
{
return Task.Run(() =>
diff --git a/src/Kiota.Builder/Refiners/ILanguageRefiner.cs b/src/Kiota.Builder/Refiners/ILanguageRefiner.cs
index 415144ea89..5e6999144e 100644
--- a/src/Kiota.Builder/Refiners/ILanguageRefiner.cs
+++ b/src/Kiota.Builder/Refiners/ILanguageRefiner.cs
@@ -31,8 +31,8 @@ public static async Task Refine(GenerationConfiguration config, CodeNamespace ge
case GenerationLanguage.Go:
await new GoRefiner(config).Refine(generatedCode, cancellationToken).ConfigureAwait(false);
break;
- case GenerationLanguage.Shell:
- await new ShellRefiner(config).Refine(generatedCode, cancellationToken).ConfigureAwait(false);
+ case GenerationLanguage.CLI:
+ await new CliRefiner(config).Refine(generatedCode, cancellationToken).ConfigureAwait(false);
break;
case GenerationLanguage.Swift:
await new SwiftRefiner(config).Refine(generatedCode, cancellationToken).ConfigureAwait(false);
diff --git a/src/Kiota.Builder/Writers/Shell/ShellCodeMethodWriter.cs b/src/Kiota.Builder/Writers/CLI/CliCodeMethodWriter.cs
similarity index 96%
rename from src/Kiota.Builder/Writers/Shell/ShellCodeMethodWriter.cs
rename to src/Kiota.Builder/Writers/CLI/CliCodeMethodWriter.cs
index 21aa3e2d2b..bcb4a46de0 100644
--- a/src/Kiota.Builder/Writers/Shell/ShellCodeMethodWriter.cs
+++ b/src/Kiota.Builder/Writers/CLI/CliCodeMethodWriter.cs
@@ -9,12 +9,12 @@
using Kiota.Builder.Extensions;
using Kiota.Builder.Writers.CSharp;
-namespace Kiota.Builder.Writers.Shell;
-partial class ShellCodeMethodWriter : CodeMethodWriter
+namespace Kiota.Builder.Writers.Cli;
+partial class CliCodeMethodWriter : CodeMethodWriter
{
- private static readonly Regex delimitedRegex = ShellDelimitedRegex();
- private static readonly Regex camelCaseRegex = ShellCamelCaseRegex();
- private static readonly Regex uppercaseRegex = ShellUppercaseRegex();
+ private static readonly Regex delimitedRegex = CliDelimitedRegex();
+ private static readonly Regex camelCaseRegex = CliCamelCaseRegex();
+ private static readonly Regex uppercaseRegex = CliUppercaseRegex();
private const string AllParamType = "bool";
private const string AllParamName = "all";
private const string CancellationTokenParamType = "CancellationToken";
@@ -43,7 +43,7 @@ partial class ShellCodeMethodWriter : CodeMethodWriter
private const string NonExecCommandsVariableName = "nonExecCommands";
private const string indexerReturn = "Tuple";
- public ShellCodeMethodWriter(CSharpConventionService conventionService) : base(conventionService, true)
+ public CliCodeMethodWriter(CSharpConventionService conventionService) : base(conventionService, true)
{
}
@@ -890,9 +890,9 @@ private static string NormalizeToOption(string input)
}
[GeneratedRegex("(?<=[a-z])[-_\\.]+([A-Za-z])", RegexOptions.Compiled)]
- private static partial Regex ShellDelimitedRegex();
+ private static partial Regex CliDelimitedRegex();
[GeneratedRegex("(?<=[a-z])([A-Z])", RegexOptions.Compiled)]
- private static partial Regex ShellCamelCaseRegex();
+ private static partial Regex CliCamelCaseRegex();
[GeneratedRegex("([A-Z])", RegexOptions.Compiled)]
- private static partial Regex ShellUppercaseRegex();
+ private static partial Regex CliUppercaseRegex();
}
diff --git a/src/Kiota.Builder/Writers/Shell/ShellWriter.cs b/src/Kiota.Builder/Writers/CLI/CliWriter.cs
similarity index 69%
rename from src/Kiota.Builder/Writers/Shell/ShellWriter.cs
rename to src/Kiota.Builder/Writers/CLI/CliWriter.cs
index 24154bb309..ce03c5c07a 100644
--- a/src/Kiota.Builder/Writers/Shell/ShellWriter.cs
+++ b/src/Kiota.Builder/Writers/CLI/CliWriter.cs
@@ -1,17 +1,17 @@
-using Kiota.Builder.Writers.CSharp;
-
-namespace Kiota.Builder.Writers.Shell;
-class ShellWriter : CSharpWriter
-{
- public ShellWriter(string rootPath, string clientNamespaceName) : base(rootPath, clientNamespaceName)
- {
- var conventionService = new CSharpConventionService();
- AddOrReplaceCodeElementWriter(new CodeClassDeclarationWriter(conventionService));
- AddOrReplaceCodeElementWriter(new CodeBlockEndWriter(conventionService));
- AddOrReplaceCodeElementWriter(new CodeEnumWriter(conventionService));
- AddOrReplaceCodeElementWriter(new CodeIndexerWriter(conventionService));
- AddOrReplaceCodeElementWriter(new ShellCodeMethodWriter(conventionService));
- AddOrReplaceCodeElementWriter(new CodePropertyWriter(conventionService));
- AddOrReplaceCodeElementWriter(new CodeTypeWriter(conventionService));
- }
-}
+using Kiota.Builder.Writers.CSharp;
+
+namespace Kiota.Builder.Writers.Cli;
+class CliWriter : CSharpWriter
+{
+ public CliWriter(string rootPath, string clientNamespaceName) : base(rootPath, clientNamespaceName)
+ {
+ var conventionService = new CSharpConventionService();
+ AddOrReplaceCodeElementWriter(new CodeClassDeclarationWriter(conventionService));
+ AddOrReplaceCodeElementWriter(new CodeBlockEndWriter(conventionService));
+ AddOrReplaceCodeElementWriter(new CodeEnumWriter(conventionService));
+ AddOrReplaceCodeElementWriter(new CodeIndexerWriter(conventionService));
+ AddOrReplaceCodeElementWriter(new CliCodeMethodWriter(conventionService));
+ AddOrReplaceCodeElementWriter(new CodePropertyWriter(conventionService));
+ AddOrReplaceCodeElementWriter(new CodeTypeWriter(conventionService));
+ }
+}
diff --git a/src/Kiota.Builder/Writers/LanguageWriter.cs b/src/Kiota.Builder/Writers/LanguageWriter.cs
index 3319c11052..aec67a15a0 100644
--- a/src/Kiota.Builder/Writers/LanguageWriter.cs
+++ b/src/Kiota.Builder/Writers/LanguageWriter.cs
@@ -6,13 +6,13 @@
using Kiota.Builder.CodeDOM;
using Kiota.Builder.PathSegmenters;
+using Kiota.Builder.Writers.Cli;
using Kiota.Builder.Writers.CSharp;
using Kiota.Builder.Writers.Go;
using Kiota.Builder.Writers.Java;
using Kiota.Builder.Writers.Php;
using Kiota.Builder.Writers.Python;
using Kiota.Builder.Writers.Ruby;
-using Kiota.Builder.Writers.Shell;
using Kiota.Builder.Writers.Swift;
using Kiota.Builder.Writers.TypeScript;
@@ -181,7 +181,7 @@ public static LanguageWriter GetLanguageWriter(GenerationLanguage language, stri
GenerationLanguage.PHP => new PhpWriter(outputPath, clientNamespaceName, usesBackingStore),
GenerationLanguage.Python => new PythonWriter(outputPath, clientNamespaceName, usesBackingStore),
GenerationLanguage.Go => new GoWriter(outputPath, clientNamespaceName),
- GenerationLanguage.Shell => new ShellWriter(outputPath, clientNamespaceName),
+ GenerationLanguage.CLI => new CliWriter(outputPath, clientNamespaceName),
GenerationLanguage.Swift => new SwiftWriter(outputPath, clientNamespaceName),
_ => throw new InvalidEnumArgumentException($"{language} language currently not supported."),
};
diff --git a/src/kiota/appsettings.json b/src/kiota/appsettings.json
index 786115e37f..b628bd360a 100644
--- a/src/kiota/appsettings.json
+++ b/src/kiota/appsettings.json
@@ -237,7 +237,7 @@
"Dependencies": [],
"DependencyInstallCommand": ""
},
- "Shell": {
+ "CLI": {
"MaturityLevel": "Preview",
"Dependencies": [
{
@@ -272,4 +272,4 @@
"DependencyInstallCommand": "dotnet add package {0} --version {1}"
}
}
-}
+}
\ No newline at end of file
diff --git a/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs b/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs
index b29f9c0034..942056f97f 100644
--- a/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs
+++ b/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs
@@ -1238,7 +1238,7 @@ public void Supports_Path_Query_And_Header_Parameters()
}
};
var mockLogger = new Mock>();
- var builder = new KiotaBuilder(mockLogger.Object, new GenerationConfiguration { ClientClassName = "Graph", ApiRootUrl = "https://localhost", Language = GenerationLanguage.Shell }, _httpClient);
+ var builder = new KiotaBuilder(mockLogger.Object, new GenerationConfiguration { ClientClassName = "Graph", ApiRootUrl = "https://localhost", Language = GenerationLanguage.CLI }, _httpClient);
var node = builder.CreateUriSpace(document);
var codeModel = builder.CreateSourceModel(node);
var deviceManagementNS = codeModel.FindNamespaceByName("ApiSdk.deviceManagement");
@@ -1331,7 +1331,7 @@ public void DeduplicatesConflictingParameterNamesForCLI()
},
};
var mockLogger = new Mock>();
- var builder = new KiotaBuilder(mockLogger.Object, new GenerationConfiguration { ClientClassName = "Graph", ApiRootUrl = "https://localhost", Language = GenerationLanguage.Shell }, _httpClient);
+ var builder = new KiotaBuilder(mockLogger.Object, new GenerationConfiguration { ClientClassName = "Graph", ApiRootUrl = "https://localhost", Language = GenerationLanguage.CLI }, _httpClient);
var node = builder.CreateUriSpace(document);
var codeModel = builder.CreateSourceModel(node);
var resultsNS = codeModel.FindNamespaceByName("ApiSdk.test.item.results");
diff --git a/tests/Kiota.Builder.Tests/Refiners/ShellRefinerTests.cs b/tests/Kiota.Builder.Tests/Refiners/CliRefinerTests.cs
similarity index 94%
rename from tests/Kiota.Builder.Tests/Refiners/ShellRefinerTests.cs
rename to tests/Kiota.Builder.Tests/Refiners/CliRefinerTests.cs
index 3fe9f02c14..221386b957 100644
--- a/tests/Kiota.Builder.Tests/Refiners/ShellRefinerTests.cs
+++ b/tests/Kiota.Builder.Tests/Refiners/CliRefinerTests.cs
@@ -8,7 +8,7 @@
namespace Kiota.Builder.Tests.Refiners;
-public class ShellRefinerTests
+public class CliRefinerTests
{
private readonly CodeNamespace root = CodeNamespace.InitRootNamespace();
@@ -71,7 +71,7 @@ public async Task AddsUsingsForCommandTypesUsedInCommandBuilder()
IsExternal = true
}
}).First();
- await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.Shell }, root);
+ await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.CLI }, root);
var declaration = requestBuilder.StartBlock;
@@ -166,7 +166,7 @@ public async Task CreatesCommandBuilders()
SerializerModules = new() { "com.microsoft.kiota.serialization.Serializer" }
});
- await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.Shell }, root);
+ await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.CLI }, root);
var methods = root.GetChildElements().OfType().SelectMany(c => c.Methods);
var methodNames = methods.Select(m => m.Name);
@@ -239,7 +239,7 @@ public async Task RemovesRequestAdaptersFromCodeDom()
Assert.Contains("adapter", propertyNames);
Assert.Contains("adapter", methodParamNames);
- await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.Shell }, root);
+ await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.CLI }, root);
Assert.DoesNotContain("adapter", propertyNames);
Assert.DoesNotContain("adapter", methodParamNames);
@@ -285,7 +285,7 @@ public async Task RenamesNavPropertiesInIndexersWithConflicts()
};
rootRequestBuilder.AddIndexer(indexer);
- await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.Shell }, root);
+ await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.CLI }, root);
Assert.Equal("GraphOrgContactNav-ById", idxNavProp.Name);
}
diff --git a/tests/Kiota.Builder.Tests/Writers/Shell/ShellCodeMethodWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/CLI/CliCodeMethodWriterTests.cs
similarity index 97%
rename from tests/Kiota.Builder.Tests/Writers/Shell/ShellCodeMethodWriterTests.cs
rename to tests/Kiota.Builder.Tests/Writers/CLI/CliCodeMethodWriterTests.cs
index c1df4a2625..4195928fd8 100644
--- a/tests/Kiota.Builder.Tests/Writers/Shell/ShellCodeMethodWriterTests.cs
+++ b/tests/Kiota.Builder.Tests/Writers/CLI/CliCodeMethodWriterTests.cs
@@ -8,9 +8,9 @@
using Xunit;
-namespace Kiota.Builder.Tests.Writers.Shell;
+namespace Kiota.Builder.Tests.Writers.Cli;
-public class ShellCodeMethodWriterTests : IDisposable
+public class CliCodeMethodWriterTests : IDisposable
{
private const string DefaultPath = "./";
private const string DefaultName = "name";
@@ -22,9 +22,9 @@ public class ShellCodeMethodWriterTests : IDisposable
private const string MethodName = "methodName";
private const string ReturnTypeName = "Somecustomtype";
- public ShellCodeMethodWriterTests()
+ public CliCodeMethodWriterTests()
{
- writer = LanguageWriter.GetLanguageWriter(GenerationLanguage.Shell, DefaultPath, DefaultName);
+ writer = LanguageWriter.GetLanguageWriter(GenerationLanguage.CLI, DefaultPath, DefaultName);
tw = new StringWriter();
writer.SetTextWriter(tw);
root = CodeNamespace.InitRootNamespace();
diff --git a/vscode/microsoft-kiota/src/kiotaInterop.ts b/vscode/microsoft-kiota/src/kiotaInterop.ts
index 0e3ddd18c0..06aa5db901 100644
--- a/vscode/microsoft-kiota/src/kiotaInterop.ts
+++ b/vscode/microsoft-kiota/src/kiotaInterop.ts
@@ -86,7 +86,7 @@ export enum KiotaGenerationLanguage {
// eslint-disable-next-line @typescript-eslint/naming-convention
Ruby = 7,
// eslint-disable-next-line @typescript-eslint/naming-convention
- Shell = 8,
+ CLI = 8,
}
export function generationLanguageToString(language: KiotaGenerationLanguage): string {
switch (language) {
@@ -106,8 +106,8 @@ export function generationLanguageToString(language: KiotaGenerationLanguage): s
return "Swift";
case KiotaGenerationLanguage.Ruby:
return "Ruby";
- case KiotaGenerationLanguage.Shell:
- return "Shell";
+ case KiotaGenerationLanguage.CLI:
+ return "CLI";
default:
throw new Error("unknown language");
}
@@ -130,8 +130,8 @@ export function parseGenerationLanguage(value: string): KiotaGenerationLanguage
return KiotaGenerationLanguage.Swift;
case "Ruby":
return KiotaGenerationLanguage.Ruby;
- case "Shell":
- return KiotaGenerationLanguage.Shell;
+ case "CLI":
+ return KiotaGenerationLanguage.CLI;
default:
throw new Error("unknown language");
}
@@ -143,7 +143,7 @@ export const allGenerationLanguages = [
KiotaGenerationLanguage.PHP,
KiotaGenerationLanguage.Python,
KiotaGenerationLanguage.Ruby,
- KiotaGenerationLanguage.Shell,
+ KiotaGenerationLanguage.CLI,
KiotaGenerationLanguage.Swift,
KiotaGenerationLanguage.TypeScript,
];