Skip to content
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

Handle some shortcuts #6

Merged
merged 2 commits into from
Mar 23, 2020
Merged

Conversation

bettio
Copy link
Collaborator

@bettio bettio commented Mar 20, 2020

Add support to [index] syntax.

@bettio bettio requested a review from rbino March 20, 2020 17:06
@bettio bettio force-pushed the handle-some-shortcuts branch from 3c7e3af to 6c50872 Compare March 20, 2020 17:32
bettio added 2 commits March 20, 2020 18:33
`key` is supported, therefore for consistency resons `[index]` should be supported too.
This is not required from the "standard" but I think that it is an
useful addition.
This change will also add support to `.key` syntax as a side effect.
We added [index] support for consistency, however due to my personal
laziness .key is accepted as a side effect of this change.
Most implementations, except the implementation used by kubectl, do not
support it, however I think it will not introduce any unexpected
drawback.
I added it to the tests since we want to keep this library as stable as
possible, even for unexpected features.
@bettio bettio force-pushed the handle-some-shortcuts branch from 6c50872 to 3663688 Compare March 20, 2020 17:34
@codecov-io
Copy link

codecov-io commented Mar 20, 2020

Codecov Report

Merging #6 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #6   +/-   ##
=======================================
  Coverage   95.45%   95.45%           
=======================================
  Files           1        1           
  Lines          22       22           
=======================================
  Hits           21       21           
  Misses          1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05ee124...3663688. Read the comment docs.

@rbino rbino merged commit 03db7de into secomind:master Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants