Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spf13/pflag
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.5
Choose a base ref
...
head repository: spf13/pflag
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.6
Choose a head ref
  • 8 commits
  • 12 files changed
  • 7 contributors

Commits on May 4, 2020

  1. Add exported functions to preserve pkg/flag compatibility (#220)

    * Rename out() to Output()
    
    This brings behavior inline with go's flag library, and allows for
    printing output directly to whatever the current FlagSet is using for
    output. This change will make it easier to correctly emit output to
    stdout or stderr (e.g. a user has requested a help screen, which
    should emit to stdout since it's the desired outcome).
    
    * improve compat. with pkg/flag by adding Name()
    
    pkg/flag has a public `Name()` function, which returns the name of the
    flag set when called. This commit adds that function, as well as a
    test for it.
    
    * Streamline testing Name()
    
    Testing `Name()` will move into its own explicit test, instead of
    running inline during `TestAddFlagSet()`.
    
    Co-authored-by: Chloe Kudryavtsev <[email protected]>
    
    Co-authored-by: Chloe Kudryavtsev <[email protected]>
    mckern and Chloe Kudryavtsev authored May 4, 2020
    Copy the full SHA
    81378bb View commit details

Commits on Sep 10, 2020

  1. Copy the full SHA
    6971c29 View commit details

Commits on Oct 9, 2020

  1. Add IPNetSlice and unit tests (#170)

    rpothier authored Oct 9, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    85dd5c8 View commit details

Commits on Jun 4, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d5e0c06 View commit details

Commits on Jan 9, 2025

  1. add github actions

    Signed-off-by: Mark Sagi-Kazar <[email protected]>
    sagikazarmark committed Jan 9, 2025
    Copy the full SHA
    f48cbd1 View commit details
  2. fix govet

    Signed-off-by: Mark Sagi-Kazar <[email protected]>
    sagikazarmark committed Jan 9, 2025
    Copy the full SHA
    a0f4ddd View commit details
  3. disable unsupported dependency graph for now

    Signed-off-by: Mark Sagi-Kazar <[email protected]>
    sagikazarmark committed Jan 9, 2025
    Copy the full SHA
    100ab0e View commit details
  4. Merge pull request #419 from spf13/ci

    add github actions
    sagikazarmark authored Jan 9, 2025
    Copy the full SHA
    5ca8134 View commit details
Loading