Skip to content
Permalink
master

Commits on Mar 5, 2022

  1. Fix some test failures on Windows

    Co-authored-by: Aaron Huntley <aaron.huntley2007@gmail.com>
    Co-authored-by: Brian Hasden <bhasden@gmail.com>
    Co-authored-by: Umang Vanjara <umang.vanjara@gmail.com>
    4 people committed Mar 5, 2022

Commits on Feb 21, 2022

  1. tweak links

    bitfield committed Feb 21, 2022
  2. tweak links

    bitfield committed Feb 21, 2022
  3. refactor docs, add examples (#94)

    refactor docs, add examples
    bitfield committed Feb 21, 2022

Commits on Jan 1, 2022

  1. Merge pull request #89 from gty929/small-updates

    Bug fixes and improvements for corner cases
    bitfield committed Jan 1, 2022
  2. tweaks

    bitfield committed Jan 1, 2022
  3. Make tests external

    bitfield committed Jan 1, 2022
  4. Add WithStdout (fixes #56)

    Previously, pipes always wrote to os.Stdout on calling Stdout().
    This made it awkward to test. Now you can set a 'fake stdout'
    by calling WithStdout(io.Writer) on the pipe.
    bitfield committed Jan 1, 2022
  5. Bug fixes and improvements for corner cases

    Fix the defect that Column crashes on zero or negative input.
    Fix the defect that Last() crashes on negative input;
    Fix the defect that Regex filters crashes on nil regex expression;
    Add unit test for WithError(); close the pipe when a non-nil error is set;
    Add ExecForEach, Reject(), and RejectRegexp to doMethodsOnPipe tests;
    Improve coverage by adding equal counts in the testcase of Freq;
    Use io.Copy() in Stdout() to improve efficiency.
    gty929 authored and bitfield committed Jan 1, 2022
  6. Make tests external

    bitfield committed Jan 1, 2022
  7. Add WithStdout (fixes #56)

    Previously, pipes always wrote to os.Stdout on calling Stdout().
    This made it awkward to test. Now you can set a 'fake stdout'
    by calling WithStdout(io.Writer) on the pipe.
    bitfield committed Jan 1, 2022

Commits on Dec 31, 2021

  1. Test with Go 1.17

    bitfield committed Dec 31, 2021
  2. Fix #81

    WriteFile is supposed to truncate and overwrite an existing file. In fact, it was overwriting the beginning of the file with the new data, but leaving the remaining old data intact. Adding the O_TRUNC flag to os.OpenFile fixes this.
    bitfield committed Dec 31, 2021

Commits on Nov 22, 2021

  1. ensmallen cover image

    bitfield committed Nov 22, 2021
  2. Add tools book link

    bitfield committed Nov 22, 2021

Commits on Nov 6, 2021

Commits on Sep 8, 2021

  1. update book link

    bitfield committed Sep 8, 2021

Commits on Oct 27, 2020

Commits on Oct 24, 2020

  1. Add book/video links (#68)

    bitfield committed Oct 24, 2020

Commits on Sep 5, 2020

  1. semgrep-go suggestions

    bitfield committed Sep 5, 2020

Commits on Jul 2, 2020

  1. Update Go link

    bitfield committed Jul 2, 2020
  2. Add Slice() sink (fixes #47)

    * Add Slice() sink (fixes #47)
    
    * Add test with empty pipe
    
    * Apply suggestions from code review
    
    Co-Authored-By: John Arundel <john@bitfieldconsulting.com>
    
    * Not using type as variable name
    
    * Using cmp to deep compare
    
    * Not testing ListFiles in the test method for SliceSink
    
    * Remove examples/visitors/go.sum who should not be commited
    
    * An empty pipe should return an empty Slice
    
    * Better example for Slice
    
    * Ignore all go.sum
    
    Co-authored-by: John Arundel <john@bitfieldconsulting.com>
    
    * use cmp.diff when printing error
    
    * Remove comma in doc
    
    * Move Slice after SHA256
    
    * Edit comments
    
    * Adding trailing blank line:
    
    * Single line with embeded new lines
    
    * Code style
    
    * Range over pids
    
    * Code style
    
    * Using EachLine to split on each lines
    
    * Slice is supposed to be after SHA256
    
    * Change order of params in cmp.Equal
    
    * Better explanation in test
    
    * typo
    
    * Better example who don't use system specific command
    
    * still an order problem
    
    * Order problem
    
    * Add comment to the example for slice
    
    * Move the test to a t.Run format
    
    * Change order for cmp.Equal
    
    * Add example file
    
    * Tweaks to SliceSink
    
    Co-authored-by: John Arundel <john@bitfieldconsulting.com>
    Co-authored-by: Thomas Poignant <thomas.poignant@adevinta.com>
    3 people committed Jul 2, 2020

Commits on Apr 29, 2020

  1. Fix ExecForEach example

    bitfield committed Apr 29, 2020

Commits on Apr 15, 2020

  1. Create FUNDING.yml

    bitfield committed Apr 15, 2020

Commits on Mar 29, 2020

  1. Merge pull request #44 from bitfield/execforeach

    Add ExecForEach()
    bitfield committed Mar 29, 2020
  2. Add ExecForEach()

    bitfield committed Mar 29, 2020
  3. Merge pull request #43 from bitfield/concat_continue

    Have Concat skip errors (fixes #26)
    bitfield committed Mar 29, 2020

Commits on Mar 28, 2020

  1. Merge pull request #42 from bitfield/better_exec

    Fix Exec to handle quotes
    bitfield committed Mar 28, 2020
Older