PowerShell / PowerShell/DSC

Allow conditional resource manifest args

Open
#1,125 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Enhancement Needs Triage
Dominant language
Rust
Stars
523
Forks
75
Avg merge
3d 16h
Merged PRs (30d)
24

Description

Summary of the new feature / enhancement

It would be useful to have conditional args passed to resources, like OS or architecture, for example.

Proposed technical implementation details (optional)

Add a new arg object:

{
  "condition": "<expression>",
  "args": [ <args> ]
}

condition would accept a valid expression and args is only appended if condition evaluates to true. Of course, some functions won't be available.

args would be an array and itself can take any valid arg string or object.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating resource manifest argument parsing and expression evaluation, then determine how conditional argument objects fit the existing manifest schema. Done means valid conditions append their args, false conditions do not, and supported versus unavailable functions are defined and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.