This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #17 from spontoreau/feature/manifestPath
Feature/manifest path
- Loading branch information
Showing
26 changed files
with
136 additions
and
72 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -70,4 +70,10 @@ tmp/ | |
|
||
# tfx | ||
dist/ | ||
.taskkey | ||
.taskkey | ||
|
||
# rust | ||
debug/**/target/ | ||
|
||
#macOS | ||
.DS_Store |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import debug from "../common/debug"; | ||
|
||
const cargoCommandInput = { | ||
name: "cargoCommand", | ||
value: "help" | ||
const cargoCommandInput = { | ||
name: "cargoCommand", | ||
value: "help" | ||
}; | ||
|
||
debug("cargo.js", cargoCommandInput); | ||
debug("cargo.js", cargoCommandInput); |
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 |
---|---|---|
@@ -1,13 +1,24 @@ | ||
import debug from "../common/debug"; | ||
import { join } from "path"; | ||
|
||
const cargoCommandInput = { | ||
name: "cargoCommand", | ||
value: "search" | ||
const cargoCommandInput = { | ||
name: "cargoCommand", | ||
value: "build" | ||
}; | ||
|
||
const cargoCommandOptionsInput = { | ||
name: "cargoCommandOptions", | ||
value: "rocket --limit 1" | ||
const cargoCommandOptionsInput = { | ||
name: "cargoCommandOptions", | ||
value: "--release" | ||
}; | ||
|
||
debug("cargo.js", cargoCommandInput, cargoCommandOptionsInput); | ||
const cargoCommandWorkingDirectory = { | ||
name: "cargoWorkingDir", | ||
value: join(__dirname, "sample") | ||
}; | ||
|
||
debug( | ||
"cargo.js", | ||
cargoCommandInput, | ||
cargoCommandOptionsInput, | ||
cargoCommandWorkingDirectory | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[package] | ||
name = "factorial" | ||
version = "0.1.0" | ||
authors = ["spontoreau <[email protected]>"] | ||
|
||
[dependencies] |
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,11 @@ | ||
fn main() { | ||
println!("Factorial of 0: {}", factorial(0)); | ||
println!("Factorial of 1: {}", factorial(1)); | ||
println!("Factorial of 2: {}", factorial(2)); | ||
println!("Factorial of 5: {}", factorial(5)); | ||
println!("Factorial of 9: {}", factorial(9)); | ||
} | ||
|
||
fn factorial(n: u32) -> u32 { | ||
return if n >= 1 { n * factorial(n - 1) } else { 1 }; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface Input { | ||
name: string, | ||
value: string | ||
} | ||
name: string; | ||
value: string; | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import debug from "../common/debug"; | ||
|
||
const installNightlyInput = { | ||
name: "installNightly", | ||
value: "false" | ||
const installNightlyInput = { | ||
name: "installNightly", | ||
value: "false" | ||
}; | ||
|
||
debug("install.js", installNightlyInput); | ||
debug("install.js", installNightlyInput); |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import debug from "../common/debug"; | ||
|
||
const installNightlyInput = { | ||
name: "installNightly", | ||
value: "true" | ||
const installNightlyInput = { | ||
name: "installNightly", | ||
value: "true" | ||
}; | ||
|
||
debug("install.js", installNightlyInput); | ||
debug("install.js", installNightlyInput); |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import debug from "../common/debug"; | ||
import { join } from "path"; | ||
|
||
const rustcInput = { | ||
name: "rustcInput", | ||
value: join(__dirname, "test.rs") | ||
const rustcInput = { | ||
name: "rustcInput", | ||
value: join(__dirname, "test.rs") | ||
}; | ||
|
||
debug("rustc.js", rustcInput); | ||
debug("rustc.js", rustcInput); |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import debug from "../common/debug"; | ||
import { join } from "path"; | ||
|
||
const rustcInput = { | ||
name: "rustcInput", | ||
value: join(__dirname, "test.rs") | ||
const rustcInput = { | ||
name: "rustcInput", | ||
value: join(__dirname, "test.rs") | ||
}; | ||
|
||
const rustcOptions = { | ||
name: "rustcOptions", | ||
value: "-o azure-devops-rustc-debug" | ||
const rustcOptions = { | ||
name: "rustcOptions", | ||
value: "-o azure-devops-rustc-debug" | ||
}; | ||
|
||
debug("rustc.js", rustcOptions, rustcInput); | ||
debug("rustc.js", rustcOptions, rustcInput); |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import debug from "../common/debug"; | ||
|
||
const rustupCommandInput = { | ||
name: "rustupCommand", | ||
value: "target" | ||
const rustupCommandInput = { | ||
name: "rustupCommand", | ||
value: "target" | ||
}; | ||
|
||
const rustupCommandArgsInput = { | ||
name: "rustupCommandArguments", | ||
value: "list" | ||
const rustupCommandArgsInput = { | ||
name: "rustupCommandArguments", | ||
value: "list" | ||
}; | ||
|
||
debug("rustup.js", rustupCommandInput, rustupCommandArgsInput); | ||
debug("rustup.js", rustupCommandInput, rustupCommandArgsInput); |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import debug from "../common/debug"; | ||
|
||
const rustupCommandInput = { | ||
name: "rustupCommand", | ||
value: "show" | ||
const rustupCommandInput = { | ||
name: "rustupCommand", | ||
value: "show" | ||
}; | ||
|
||
debug("rustup.js", rustupCommandInput); | ||
debug("rustup.js", rustupCommandInput); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import { getInput } from "azure-pipelines-task-lib"; | ||
import { executeCommand, createCommand } from "./common/command"; | ||
import { join } from "path"; | ||
import { createCommand, executeCommand } from "./common/command"; | ||
import { launch } from "./common/launch"; | ||
|
||
const workingDir = getInput("cargoWorkingDir"); | ||
const manifestPath = !workingDir | ||
? "" | ||
: `--manifest-path ${join(workingDir, "Cargo.toml")}`; | ||
|
||
const command = createCommand( | ||
"cargo", | ||
getInput("cargoCommand"), | ||
getInput("cargoCommandOptions") | ||
`${getInput("cargoCommandOptions")} ${manifestPath}` | ||
); | ||
|
||
launch(async () => await executeCommand(command)); |
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
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
{ | ||
"defaultSeverity": "error", | ||
"extends": ["tslint:recommended"], | ||
"extends": [ | ||
"tslint:recommended", | ||
"tslint-config-prettier" | ||
], | ||
"jsRules": {}, | ||
"rules": { | ||
"interface-name": [true, "never-prefix"], | ||
"member-access": [true, "no-public"] | ||
"member-access": [true, "no-public"], | ||
"interface-over-type-literal": false | ||
}, | ||
"rulesDirectory": [] | ||
} |
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