Skip to content

Commit

Permalink
Clean code and preapare releae version
Browse files Browse the repository at this point in the history
  • Loading branch information
adashen committed Jun 27, 2018
1 parent 370f990 commit 58a7a27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-iot-edge",
"displayName": "Azure IoT Edge",
"description": "Develop, deploy, debug, and manage your IoT Edge solution",
"version": "1.0.0-rc2",
"version": "1.0.0",
"publisher": "vsciot-vscode",
"aiKey": "95b20d64-f54f-4de3-8ad5-165a75a6c6fe",
"icon": "logo.png",
Expand Down
7 changes: 3 additions & 4 deletions src/edge/edgeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,23 +253,22 @@ export class EdgeManager {
// TODO command to create module;
switch (template) {
case Constants.LANGUAGE_CSHARP:
// await Executor.executeCMD(outputChannel, "dotnet", { shell: true }, "new -i Microsoft.Azure.IoT.Edge.Module");
await Executor.executeCMD(outputChannel, "dotnet", { shell: true }, "new -i Microsoft.Azure.IoT.Edge.Module");
await Executor.executeCMD(outputChannel, "dotnet", { cwd: `${parent}`, shell: true }, `new aziotedgemodule -n "${name}" -r ${repositoryName}`);
break;
case Constants.CSHARP_FUNCTION:
// await Executor.executeCMD(outputChannel, "dotnet", { shell: true }, "new -i Microsoft.Azure.IoT.Edge.Function");
await Executor.executeCMD(outputChannel, "dotnet", { shell: true }, "new -i Microsoft.Azure.IoT.Edge.Function");
await Executor.executeCMD(outputChannel, "dotnet", { cwd: `${parent}`, shell: true }, `new aziotedgefunction -n "${name}" -r ${repositoryName}`);
break;
case Constants.LANGUAGE_PYTHON:
const gitHubSource = "https://github.com/Azure/cookiecutter-azure-iot-edge-module";
const branch = "develop";
const branch = "master";
await Executor.executeCMD(outputChannel,
"cookiecutter",
{ cwd: `${parent}`, shell: true },
`--no-input ${gitHubSource} module_name=${name} image_repository=${repositoryName} --checkout ${branch}`);
break;
case Constants.LANGUAGE_NODE:
// await Executor.executeCMD(outputChannel, "npm", { shell: true }, "i -g generator-azure-iot-edge-module");
await Executor.executeCMD(outputChannel, "yo", { cwd: `${parent}`, shell: true }, `azure-iot-edge-module -n "${name}" -r ${repositoryName}`);
break;
default:
Expand Down

0 comments on commit 58a7a27

Please sign in to comment.