Skip to content

Commit 64fb30d

Browse files
author
Viktor Chernev
committed
Work on features and bugs
1 parent 4921297 commit 64fb30d

15 files changed

+139
-234
lines changed

DescribeTranspiler.AWS/Function.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -589,16 +589,6 @@ public APIGatewayProxyResponse HTranspile_SingleDmlToSingleHtmlPlain(APIGatewayP
589589
}
590590
}
591591
}
592-
593-
public class InputJson
594-
{
595-
public string Command { get; set; }
596-
public string Verbosity { get; set; }
597-
public string Translator { get; set; }
598-
599-
public string Filename { get; set; }
600-
public string Code { get; set; }
601-
}
602592
public class OutputJson
603593
{
604594
public string? Command { get; set; }

DescribeTranspiler.AWS/FunctionsMessages.cs

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -75,97 +75,7 @@ public static void printCmdJson(string? json)
7575
}
7676

7777

78-
//errors
79-
public static void printCmdLine(InputJson source)
80-
{
81-
string s = "> ";
82-
83-
s += "{ \"Command\":\"" + source.Command + "\", ";
84-
s += "\"Translator\":\"" + source.Translator + "\", ";
85-
s += "\"Verbosity\":\"" + source.Verbosity + "\", ";
86-
87-
string code = source.Code;
88-
if (code.Length > 12) code = code.Substring(0, 12) + " ... ";
89-
s += "\"Code\":\"" + code + "\"; }";
90-
ConsoleLogInfo(s);
91-
}
92-
public static void printCmdLineForGET(APIGatewayProxyRequest request)
93-
{
94-
string s = "> ";
95-
96-
string command = "null";
97-
if(request.QueryStringParameters.ContainsKey("command"))
98-
{
99-
command = request.QueryStringParameters["command"];
100-
}
101-
s += "{ \"Command\":\"" + command + "\", ";
102-
103-
string translator = "null";
104-
if (request.QueryStringParameters.ContainsKey("translator"))
105-
{
106-
translator = request.QueryStringParameters["translator"];
107-
}
108-
s += "\"Translator\":\"" + translator + "\", ";
109-
110-
string verbosity = "null";
111-
if (request.QueryStringParameters.ContainsKey("verbosity"))
112-
{
113-
verbosity = request.QueryStringParameters["verbosity"];
114-
}
115-
s += "\"Verbosity\":\"" + verbosity + "\", ";
116-
117-
string code = "null";
118-
if (request.QueryStringParameters.ContainsKey("code"))
119-
{
120-
code = request.QueryStringParameters["code"];
121-
if(code.Length > 12) code = code.Substring(0, 12) + " ... ";
122-
}
123-
s += "\"Code\":\"" + code + "\"; }";
124-
125-
ConsoleLogInfo(s);
126-
}
127-
public static void printCmdLineForPOST(string? command = null, string? translator = null,
128-
string? verbosity = null, string? beautified = null, string? language_version = null, string? filename = null,
129-
string? input_password = null, string? output_password = null, string? log_password = null)
130-
{
131-
string s = "> ";
132-
133-
if(command == null) command = "null";
134-
s += "{ \"Command\":\"" + command + "\", ";
135-
136-
if (translator == null) translator = "null";
137-
s += "\"Translator\":\"" + translator + "\", ";
138-
139-
if (verbosity == null) verbosity = "null";
140-
s += "\"Verbosity\":\"" + verbosity + "\", ";
141-
142-
if (language_version == null) language_version = "null";
143-
s += "\"Language version\":\"" + language_version + "\", ";
144-
145-
if (beautified == null) beautified = "null";
146-
s += "\"Beautified\":\"" + beautified + "\", ";
147-
148-
if (filename == null) filename = "null";
149-
s += "\"Filename\":\"" + filename + "\", ";
150-
151-
if (input_password == null) input_password = "null";
152-
else input_password = "***";
153-
s += "\"Input Password\":\"" + input_password + "\", ";
154-
155-
if (output_password == null) output_password = "null";
156-
else output_password = "***";
157-
s += "\"Output Password\":\"" + output_password + "\", ";
158-
159-
if (log_password == null) log_password = "null";
160-
else log_password = "***";
161-
s += "\"Log Password\":\"" + log_password + "\", ";
162-
163-
s += "\"Code\":[CODE] ; }";
164-
165-
ConsoleLogInfo(s);
166-
}
167-
168-
78+
//errors
16979
public static void printCompilationSuccess()
17080
{
17181
//add to log

DescribeTranspiler.AWS/TestInputs/APIGatewayProxyRequest_Empty.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

DescribeTranspiler.AWS/TestInputs/APIGatewayProxyRequest_MultiParse.json

Lines changed: 0 additions & 52 deletions
This file was deleted.

DescribeTranspiler.AWS/TestInputs/testHelp.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

DescribeTranspiler.AWS/TestInputs/testParse.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

DescribeTranspiler.AWS/aws-configs/HTML aws-lambda-tools-defaults.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"function-name": "Transpile_SingleDmlToSingleHtml",
1818
"function-description": "Compile Describe Source code to HTML",
1919
"package-type": "Zip",
20-
"function-role": "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToHtml",
20+
"function-role": "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToJson",
2121
"function-subnets": "",
2222
"function-security-groups": "",
2323
"tracing-mode": "PassThrough",

DescribeTranspiler.AWS/aws-configs/HTML_PLAIN aws-lambda-tools-defaults.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"function-name": "Transpile_SingleDmlToSingleHtmlPlain",
1818
"function-description": "Compile Describe Source code to Html",
1919
"package-type": "Zip",
20-
"function-role": "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToHtmlPlain",
20+
"function-role": "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToJson",
2121
"function-subnets": "",
2222
"function-security-groups": "",
2323
"tracing-mode": "PassThrough",
Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
21
{
3-
"Information" : [
4-
"This file provides default values for the deployment wizard inside Visual Studio and the AWS Lambda commands added to the .NET Core CLI.",
5-
"To learn more about the Lambda commands with the .NET Core CLI execute the following command at the command line in the project root directory.",
6-
"dotnet lambda help",
7-
"All the command line options for the Lambda command can be specified in this file."
8-
],
9-
"profile" : "default",
10-
"region" : "eu-north-1",
11-
"configuration" : "Release",
12-
"function-architecture" : "x86_64",
13-
"function-runtime" : "dotnet8",
14-
"function-memory-size" : 3008,
15-
"function-timeout" : 30,
16-
"function-handler" : "DescribeTranspiler.AWS::DescribeTranspiler.AWS.Function::HTranspile_SingleDmlToSingleJson",
17-
"framework" : "net8.0",
18-
"function-name" : "Transpile_SingleDmlToSingleJson",
19-
"function-description" : "Compile Describe Source code to JSON",
20-
"package-type" : "Zip",
21-
"function-role" : "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToJson",
22-
"function-subnets" : "",
23-
"function-security-groups" : "",
24-
"tracing-mode" : "PassThrough",
25-
"environment-variables" : "",
26-
"image-tag" : ""
2+
"Information": [
3+
"This file provides default values for the deployment wizard inside Visual Studio and the AWS Lambda commands added to the .NET Core CLI.",
4+
"To learn more about the Lambda commands with the .NET Core CLI execute the following command at the command line in the project root directory.",
5+
"dotnet lambda help",
6+
"All the command line options for the Lambda command can be specified in this file."
7+
],
8+
"profile": "default",
9+
"region": "eu-north-1",
10+
"configuration": "Release",
11+
"function-architecture": "x86_64",
12+
"function-runtime": "dotnet8",
13+
"function-memory-size": 3008,
14+
"function-timeout": 30,
15+
"function-handler": "DescribeTranspiler.AWS::DescribeTranspiler.AWS.Function::HTranspile_SingleDmlToSingleJson",
16+
"framework": "net8.0",
17+
"function-name": "Transpile_SingleDmlToSingleJson",
18+
"function-description": "Compile Describe Source code to JSON",
19+
"package-type": "Zip",
20+
"function-role": "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToJson",
21+
"function-subnets": "",
22+
"function-security-groups": "",
23+
"tracing-mode": "PassThrough",
24+
"environment-variables": "",
25+
"image-tag": ""
2726
}

DescribeTranspiler.AWS/aws-configs/JSON_LISTIARY aws-lambda-tools-defaults.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"function-name": "Transpile_SingleDmlToSingleJsonListiary",
1818
"function-description": "Compile Describe Source code to JSON",
1919
"package-type": "Zip",
20-
"function-role": "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToJsonListiary",
20+
"function-role": "arn:aws:iam::580393905125:role/lambda_exec_CompileDescribeCodeToJson",
2121
"function-subnets": "",
2222
"function-security-groups": "",
2323
"tracing-mode": "PassThrough",

0 commit comments

Comments
 (0)