Presenting Content type property diff

Open
#1,683 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start by reading the FileContent resource discussion and the current handling of property differences returned by resources that implement test directly. Determine how a structured value such as content:200 can be represented and presented to users, then verify that content differences identify the relevant line rather than only the property.

Written by the indexing model from the issue text.

Description

Issue-Enhancement Needs Triage
Summary of the new feature / enhancement

The discussion from the WG regarding the FileContent resource was around how to present to the user which line in the content was different rather than just indicating the entire content property was different.

Proposed technical implementation details (optional)

Resource can optionally return the diff if it implements test directly. However, this is currently expected to be a list of properties that differ. We can enhance this by adding a structured syntax to identify a specific line. For example:

content:200

This would indicate that line 200 in property content differs.

Dominant language
Rust
Stars
546
Forks
84
Avg merge
2d 9h
Merged PRs (30d)
25

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from PowerShell/DSC

All issues in PowerShell/DSC

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.