-
Notifications
You must be signed in to change notification settings - Fork 45
Terminate process tree on ctrl+c #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4bb61b8
381ffbe
1a7d315
bdb42dc
4e16ed7
77267f9
bd2cf0a
d5502be
f43f57d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,9 @@ pub struct ResourceManifest { | |
|
||
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, JsonSchema)] | ||
pub enum InputKind { | ||
/// The input replaces arguments with this token in the command. | ||
#[serde(rename = "arg")] | ||
Arg(String), | ||
Comment on lines
+53
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about this change/implementation from the user-facing perspective and the schema - it moves the schema from a set of enum values (in JSON Schema syntax) to a I would propose an enum value like We could have that argument be something like Then the manifest would look like: "set": {
"executable": "foo",
"args": ["config", "set", "--input", "{{instance_json}}"],
"input": "replaceArg"
} From a schema perspective, we can then validate that when Are there cases where users will need to specify a custom value for the replacement string? allOf:
- if: { properties: { input: { const: replaceArg } } }
then:
properties:
args:
contains: { const: '{{instance_json}}' }
minContains: 1
maxContains: 1
else:
properties:
args:
not: { contains: { const: '{{instance_json}}' } } There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @michaeltlombardi please open a new issue to discuss |
||
/// The input is accepted as environmental variables. | ||
#[serde(rename = "env")] | ||
Env, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "dsctest" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
clap = { version = "4.1", features = ["derive"] } | ||
schemars = { version = "0.8" } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = { version = "1.0", features = ["preserve_order"] } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# DSCTest Resource | ||
|
||
## Sleep | ||
|
||
Example config: | ||
|
||
```yaml | ||
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json | ||
resources: | ||
- name: Sleep1 | ||
type: Test/Sleep | ||
properties: | ||
seconds: 30 | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.