-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from purduesigbots/release/0.7.2
🔖 Release 0.7.2
- Loading branch information
Showing
13 changed files
with
404 additions
and
426 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import * as vscode from "vscode"; | ||
import { BaseCommand, BaseCommandOptions } from "./base-command"; | ||
import { StringDecoder } from "string_decoder"; | ||
import { PREFIX } from "./cli-parsing"; | ||
|
||
export const infoProject = async () => { | ||
const infoProjectCommandOptions: BaseCommandOptions = { | ||
command: "pros", | ||
args: ["c", "info-project", "--machine-output"], | ||
message: undefined, | ||
requiresProsProject: true, | ||
extraOutput: true, | ||
successMessage: "hidden", | ||
}; | ||
|
||
const infoProjectCommand: BaseCommand = new BaseCommand( | ||
infoProjectCommandOptions | ||
); | ||
|
||
try { | ||
await infoProjectCommand.runCommand(); | ||
} catch (err: any) { | ||
await vscode.window.showErrorMessage(err.message); | ||
} | ||
|
||
var output = "Installed Templates: "; | ||
for (let e of infoProjectCommand.extraOutput!) { | ||
if (e.startsWith(PREFIX)) { | ||
let jdata = JSON.parse(e.substr(PREFIX.length)); | ||
if (jdata.type === "finalize") { | ||
const target = jdata.data.project.target; | ||
for (let t of jdata.data.project.templates) { | ||
output += `${t.name}: ${t.version}, `; | ||
} | ||
} | ||
} | ||
} | ||
// Remove trailing comma | ||
output = output.slice(0, -2); | ||
vscode.window.showInformationMessage(output); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.