Debian Codegraph @

internal/actions/cmd/changefinder/README.md

raw
1 # changefinder
2
3 `changefinder` will compare the current branch to the `origin/master` branch
4 then determine which submodules, excluding `internal` submodules, had changes,
5 and list them on `stdout`. The default is emit them in a simple newline
6 delimited list.
7
8 The available flags are as follows:
9 * `-dir=[absolute path]`: The directory to diff, defaults to current working
10 directory.
11 * `-q`: Enables quiet mode with no logging. In the event of an error while in
12 quiet mode, all logs that were surpressed are dumped with the error. Defaults
13 to `false` (i.e. "verbose").
14 * `-format=[plain|github]`: The `stdout` output format. Default is `plain`.
15 * `-gh-var=[variable name]`: The variabe name to set output for in `github`
16 format mode. Defaults to `submodules`.
17 * `-base=[ref name]`: The base ref to compare `HEAD` to. Default is
18 `origin/main`.
19
20 Example usages from this repo root:
21
22 ```sh
23 # targeting a git repository other than current working directory
24 go run ./internal/actions/cmd/changefinder -dir /path/to/your/go/repo
25
26 # quiet mode, github format
27 go run ./internal/actions/cmd/changefinder -q -format=github
28
29 # quiet mode, github format, github var name "foo"
30 go run ./internal/actions/cmd/changefinder -q -format=github -gh-var=foo
31 ```