compliance-trestle
compliance-trestle copied to clipboard
As a user I would like trestle to (optionally) remove plurals from name when using trestle author docs create-sample
Issue description / feature objectives
This is not high priority, however, I believe it is a nice feature, and could have a minimal implementation (or quite a sophisticated one).
-
trestle author docs setup -tn decisions
- When I run
trestle author docs create-sample -tn decisions
rather than creating-
decisions/decisions_001.md
ideally it would be good to createdecisions/decision_001.md
-
- Similar could be true for acronyms:
-
trestle author docs setup -tn ADRs
->ADRs/ADR_001.md
-
Three ways this could be created:
- Optional (or not) behaviour for stripping trailing
s
from the name - Using a library that can 'deplural' words (e.g. https://pypi.org/project/inflect/) -
- Add a stem/prepend argument to create sample (allowing flexibilty)
- For the top scenario that would result in trestle author docs create-sample -tn decisions --stem decision`
I would put this as a post 1.0.0 feature.