webdevops / go-replace

Replace in file console utility written in golang (for eg. usage in docker images)
MIT License
50 stars 7 forks source link

Cannot use path pattern ignoring nested directories #12

Closed comradefuzz closed 4 years ago

comradefuzz commented 4 years ago

Trying to replace envs in all YAML files in directory go-replace --mode=template --path=./k8s/ --path-pattern='*.yaml' . But can't find any reasonable way to exclude nested directories. How can I process only first level of selected path?

comradefuzz commented 4 years ago

Sorry, regexp magic solves this.