Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit ae63023

Browse files
committed
📝 update Usages
1 parent 9977d05 commit ae63023

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,49 @@ ARGS:
5353
```
5454

5555
* broadcast `git status` to every repositories
56+
5657
```sh
5758
git find -t 'cd {{ .path.full }}; echo "\n\n---------------------------------------------\n$PWD"; git status' | sh
5859
````
5960

61+
### Template format
62+
63+
The template format is a subset of [golang text/template](https://golang.org/pkg/text/template/).
64+
65+
### Possibles values
66+
67+
*!! Experimental: values could change with future release !!*
68+
69+
* .path
70+
* .file_name
71+
* .full
72+
* .remotes
73+
* .<name_of_remote> : eg 'origin'
74+
* .name
75+
* .url_full
76+
* .url_host
77+
* .url_path
78+
79+
#### Samples
80+
81+
* to list local repository
82+
83+
```tmpl
84+
{{ .path.file_name }}\t{{ .path.full }}
85+
```
86+
87+
* to list local repository with origin url
88+
89+
```tmpl
90+
{{ .path.file_name }}\t{{ .path.full }}\t{{with .remotes.origin}} {{ .name }} {{.url_full}} {{.url_host}} {{.url_path}} {{end}}
91+
````
92+
93+
* to create a sh script to "git fetch" on every repository
94+
95+
```tmpl
96+
cd {{ .path.full }}; echo "\n\n---------------------------------------------\n$PWD"; git fetch
97+
```
98+
6099
## <a name='Install'></a>Install
61100

62101
### <a name='Viarusttoolchain'></a>Via rust toolchain

0 commit comments

Comments
 (0)