sous-chefs / sous-chefs/network_interfaces

Multiple value entries

Open
#18 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
24
Forks
27
Avg merge
5h 45m
Merged PRs (30d)
1

Description

Sorry to bug you again, thanks for the quick response last time!

I was wondering if it's possible to have multiple values such as for up/down? The easiest I guess would be to have them as an array? but they are strings.

Json:
"down": "ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0",
"down": "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"

Gives me only the first value.

"down": ["ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0", "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"]

Gives me "Option down must be a kind of String! You passed ["ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0", "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"]."

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 tracing how the down option is parsed and where its String type is enforced; no source files or tests are named in the issue. Compare the two JSON forms and define completion as accepting multiple down commands while preserving existing single-string behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.