• Cornelius Toole's avatar
    feat(file-ignore): add Strings option type · 5fe469e3
    Cornelius Toole authored
    - first step toward implementing file ignore
    
    feat(file-ignore): implement file ignore
    
    - add flags for providing a gitignore and/or list of files to ignore
    - construct a filter to be passed to a SerialFile
    
    feat(file-ignore): use go-ipfs-files fork; use renamed constructor
    
    feat(file-ignore): test case w. ignore rules; refactor parseArgs
    
    feat(file-ignore): ignore-rule opt is open-ended
    
    - make ignore-rules options accept a path to a file
    - add test case for ignore rules file
    
    feat(file-ignore): help-text for variardic opts
    
    - show StringsOption as variardic option in help-text
    - add test case for variardic option
    
    feat(file-ignore): rename rulesfile opt; fix typos
    
    feat(file-ignore): temp replace of go-ipfs-files
    
    - temporarily using go-ipfs-files fork until go-ipfs-files#26 is merged
    - trying to get ci/cd builds working
    - will revert before merging
    
    feat(file-ignore): refactor cli/parse.go#setOpts
    
    feat(file-ignore): cleanup parse.go; add test-case
    
    feat(file-ignore): update ignore option copytext
    
    feat(file-ignore): check opt against `optDef.Type`
    
    - revert exclusion of options with `Strings` type,
    so those option values are typechecked
    - add command test cases
    
    feat(file-ignore): add test-case w. hidden file
    
    feat(file-ignore): build against go-ipfs-files@latest
    
    feat(file-ignore): update go.mod/go.sum
    5fe469e3
parse_test.go 19.9 KB