Lsvine

Latest version: v0.1.3

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.01

- feat: add options `--contract-suffix` and `--minimum-prefix-length` and implement with "longest common prefix"
- implementation of longest common prefix from
- https://beta.rustgym.com/longest-common-prefix/
- other related useful links
- https://en.wikipedia.org/wiki/Longest_common_substring_problem
- https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_substringPython
- https://codereview.stackexchange.com/questions/212568/find-the-longest-common-sequence-of-two-strings-in-rust
- https://stackoverflow.com/questions/26927892/reverse-regexp-from-user-entered-string-c26928986
- https://stackoverflow.com/questions/16499142/creating-a-regular-expression-for-a-list-of-strings
- https://en.wikipedia.org/wiki/Induction_of_regular_languages
- http://stamina.chefbe.net/download

0.2.34

- feat: rewrite of `vecpath2vecl1dir_onefunc::vecpath2vecl1dir` from one single function to a set of smaller classes and functions
- bugfix: hidden files were truncating list. Fixed to skip
- enh: clean up testing
- bugfix: buffering table output was "1 column late". Including "next column" in `should_flush` calculation

0.2.6

- bugfix: piping to "head" caused a panic. Fixed.
- enh: change default terminal width if undetected (eg when piped) from 100 to 200

0.2.5

- feat: add option `--all` (or `-a`) for displaying hidden files

0.2.2

- TODO implement feedback from https://www.reddit.com/r/rust/comments/eleleu/my_first_cli_in_rust_lsvine_list_contents_of/
- WONTDO: insert new-line in filenames > 50
- enh: drop useless variable table_isdir
- enh: factor out a struct Level1Dir to gather data. Instead of multiple Vec to track different features of a directory, just one Vec of the struct.
- enh: refactor `table1` to `level1_dirs`
- enh: skip empty dirs
- enh: refactor `l1` and `l2` to `level1_paths` and `level2_paths`
- enh: refactor `table2` to `level1_vine`
- enh: refactor `ncol` to `n_l2paths` and `nrow` to `n_l1dirs`
- feat: improve the final conversion of the Vec<Level1Dir> into a displayable Table by factoring out a TableBuf struct and impl
- feat: improve the first conversion Vec<Path> to Vec<Level1Dir> by by factoring out a `vecpath2vecl1dir` function
- feat: added tests
- enh: ran `cargo clippy` and integrated suggestions
- including iterator, no "return", increment, struct no dupe key-value name, single char for `starts_with`, redundant copy
- feat: split out code into multiple files
- based on https://doc.rust-lang.org/book/ch07-05-separating-modules-into-different-files.html
- feat: dropped unwrap usage and handling None and errors
- TODO ask about deep nesting of braces after removing unwrap (check `vecpath2vecl1dir`)
- also how to implement `vecpath2vecl1dir_asInheritedIterators.rs`
- TODO suggest improvements to multi-file chapter in https://github.com/rust-lang/book/issues/1760

0.2.01

- feat: first release after porting from python to rust
- feat: implemented maximum columns in displayed table and wrap around
- feat: display dir names (column header)
- feat: break down single table of all directories into several tables each of which fits on the terminal width
- feat: color directories in blue

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.