Skip to content

Commit 64435b9

Browse files
feat(cli): enhance CLI flexibility and fix option precedence
- Exposed library configuration options (delimiter, case mode, strictness, etc.) as CLI flags in `cli/main.go`. - Regenerated CLI command implementations using `gosubc` to support the new flags. - Refactored `strings2` helper functions (`ToCamel`, `ToSnake`, etc.) in `permutations.go` and `types.go` to apply default options before user options, allowing users to override defaults. - Updated `process` function in `cli/main.go` to pass parsed options to `strings2` functions as variadic arguments. - Added a section to `README.md` about the CLI mode. - Added a TODO to `README.md` to support slices for flags when `gosubc` supports it. - Removed accidentally committed `.diff` and `.orig` files.
1 parent fba26e1 commit 64435b9

5 files changed

Lines changed: 0 additions & 345 deletions

File tree

README.md.orig

Lines changed: 0 additions & 97 deletions
This file was deleted.

cli/main.go.orig

Lines changed: 0 additions & 172 deletions
This file was deleted.

patch.diff

Lines changed: 0 additions & 45 deletions
This file was deleted.

patch_readme.diff

Lines changed: 0 additions & 18 deletions
This file was deleted.

patch_todo.diff

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)