-
Notifications
You must be signed in to change notification settings - Fork 0
/
.justfile
15 lines (14 loc) · 1.07 KB
/
.justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PascalCase := "CustomerHistory"
snake_case := "customer_history"
train-case := "customer-history"
pattern := '.*\.rs|.*\.md|.*\.proto|Cargo.toml|.*\.json|.*\.krop|.*\.krpref|.*.krproj'
fix:
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ PascalCase }}Service" "{{{{ ArtifactId }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ snake_case }}_service" "{{{{ artifact_id }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ snake_case }}.service" "{{{{ prefix_name }}.{{{{ suffix_name }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ snake_case }}/service" "{{{{ prefix_name }}/{{{{ suffix_name }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ train-case }}-service" "{{{{ artifact-id }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ PascalCase }}" "{{{{ PrefixName }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ snake_case }}" "{{{{ prefix_name }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s "{{ train-case }}" "{{{{ prefix-name }}"
fd -0 -H '{{ pattern }}' . | xargs -0 sd -f c -s {{"{{"}}"{" {{"{{"}}"'{'}}"{{"{{"}}