Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: Add helper for uniform flags and env vars#588

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
f0ssel merged 5 commits intomainfromf0ssel/env
Mar 28, 2022
Merged

Conversation

f0ssel
Copy link
Contributor

This is a small package dedicated to cleaning and standardizing flags on the cli. By doing so we gain:

  • Default values for flags
  • Enforces pattern of matching flags and env vars (and requiring env vars use flags so we have better tests)
  • Generates clean usage docs for flags that have env var fallbacks & defaults

@f0sself0sselforce-pushed thef0ssel/env branch 2 times, most recently fromda08c31 tob949d1aCompareMarch 28, 2022 00:00
@codecov
Copy link

codecovbot commentedMar 28, 2022
edited
Loading

Codecov Report

Merging#588 (13c71df) intomain (b33dec9) willdecrease coverage by0.25%.
The diff coverage is96.87%.

@@            Coverage Diff             @@##             main     #588      +/-   ##==========================================- Coverage   63.68%   63.43%   -0.26%==========================================  Files         195      196       +1       Lines       11313    11323      +10       Branches       85       85              ==========================================- Hits         7205     7183      -22- Misses       3351     3378      +27- Partials      757      762       +5
FlagCoverage Δ
unittest-go-62.50% <96.87%> (-0.20%)⬇️
unittest-go-macos-latest58.39% <96.87%> (+0.10%)⬆️
unittest-go-ubuntu-latest61.33% <96.87%> (-0.01%)⬇️
unittest-go-windows-202257.35% <96.87%> (-0.03%)⬇️
unittest-js63.32% <ø> (ø)
Impacted FilesCoverage Δ
cli/workspaceagent.go66.66% <66.66%> (ø)
cli/cliflag/cliflag.go100.00% <100.00%> (ø)
cli/start.go63.80% <100.00%> (-1.97%)⬇️
provisionersdk/transport.go74.46% <0.00%> (-6.39%)⬇️
codersdk/provisionerdaemons.go58.46% <0.00%> (-3.08%)⬇️
coderd/provisionerdaemons.go60.23% <0.00%> (-2.52%)⬇️
peer/conn.go79.18% <0.00%> (-1.53%)⬇️
provisionerd/provisionerd.go79.73% <0.00%> (-1.18%)⬇️
peer/channel.go83.62% <0.00%> (+0.58%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updateb33dec9...13c71df. Read thecomment docs.

@f0sself0sselforce-pushed thef0ssel/env branch 5 times, most recently fromb78809a tod5bf66cCompareMarch 28, 2022 03:36
@misskniss
Copy link

@kylecarbs can this be closed or does it still need to be done?

@kylecarbs
Copy link
Member

This isn't mandatory for alpha but should be something we tackle sooner rather than later.

Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

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

Minor nits, but overall great addition!

@f0sself0ssel merged commit01957da intomainMar 28, 2022
@f0sself0ssel deleted the f0ssel/env branchMarch 28, 2022 19:26
@missknissmisskniss added this to theV2 Beta milestoneMay 15, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@f0sself0ssel

Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

3 participants
@f0ssel@misskniss@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp