PowerShell / PowerShell/DSC

Refactor code for ConfigSubCommands

Open
#83 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Steps to reproduce

3 subcomands ConfigSubCommand::Get/Set/Test use copies of mostly the same code; this should be refactored to reuse same piece of code.
This was brought up in PR review #82 .

Expected behavior
N/A
Actual behavior
N/A
Error details

No response

Environment data
N/A
Version

N/A

Visuals

No response

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

Start by locating ConfigSubCommand::Get, Set, and Test and review PR #82 for the duplicated code identified during review. Compare their behavior before consolidating the shared implementation. Done means the three subcommands reuse the same code without changing their existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.