Skip to content

cmd: handle boolean types in config options#614

Merged
bobheadxi merged 1 commit into
ubclaunchpad:masterfrom
kip-13:cmd/#590-bool-types-handle
Aug 28, 2019
Merged

cmd: handle boolean types in config options#614
bobheadxi merged 1 commit into
ubclaunchpad:masterfrom
kip-13:cmd/#590-bool-types-handle

Conversation

@kip-13

@kip-13 kip-13 commented Aug 28, 2019

Copy link
Copy Markdown
Contributor

🎟️ Ticket(s): Closes #590


👷 Changes

Just identify the type of fieldVal and in the correct evaluation use strconv to validate the input.

The valid values could be (doc):

1, t, T, TRUE, true, True, 0, f, F, FALSE

🔦 Testing Instructions

go test ./cfg or make test

@kip-13 kip-13 requested a review from bobheadxi as a code owner August 28, 2019 16:48
@kip-13 kip-13 requested a review from a team August 28, 2019 16:48
@ghost ghost requested review from kimoantiqe and seifghazi August 28, 2019 16:48
@codecov

codecov Bot commented Aug 28, 2019

Copy link
Copy Markdown

Codecov Report

Merging #614 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #614      +/-   ##
==========================================
+ Coverage   55.82%   55.88%   +0.07%     
==========================================
  Files          68       68              
  Lines        3372     3377       +5     
==========================================
+ Hits         1882     1887       +5     
  Misses       1248     1248              
  Partials      242      242
Impacted Files Coverage Δ
cfg/util.go 70.38% <100%> (+6.74%) ⬆️

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 4a0de2d...fef4c92. Read the comment docs.

@bobheadxi bobheadxi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thank you for fixing this! 😍

@bobheadxi bobheadxi merged commit d4c3a40 into ubclaunchpad:master Aug 28, 2019
@kip-13 kip-13 deleted the cmd/#590-bool-types-handle branch August 28, 2019 18:16
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.

cmd: 'inertia remote set ${remote} daemon.verify-ssl' does not work

2 participants