Update help texts
This commit is contained in:
parent
71d3bc8dcc
commit
90354265a0
2 changed files with 11 additions and 5 deletions
|
@ -37,3 +37,9 @@ Archive pads:
|
||||||
## As a GitHub action
|
## As a GitHub action
|
||||||
|
|
||||||
*TODO*
|
*TODO*
|
||||||
|
|
||||||
|
## Using Container Image
|
||||||
|
|
||||||
|
```shell
|
||||||
|
podman run --rm --mount type=bind,source=./.,destination=/repo -i --workdir /repo ghcr.io/dadada/pad-archiver < pads.txt
|
||||||
|
```
|
||||||
|
|
10
main.go
10
main.go
|
@ -142,27 +142,27 @@ func main() {
|
||||||
gitdir := flag.String(
|
gitdir := flag.String(
|
||||||
"C",
|
"C",
|
||||||
cwd,
|
cwd,
|
||||||
"git directory",
|
"The directory containing the git repository in which to archive the pads.",
|
||||||
)
|
)
|
||||||
doPush := flag.Bool(
|
doPush := flag.Bool(
|
||||||
"push",
|
"push",
|
||||||
false,
|
false,
|
||||||
"push repository to remote",
|
"Push the changes to the remote specified by remoteUrl",
|
||||||
)
|
)
|
||||||
username := flag.String(
|
username := flag.String(
|
||||||
"username",
|
"username",
|
||||||
"",
|
"",
|
||||||
"username",
|
"The username for authenticating to the remote.",
|
||||||
)
|
)
|
||||||
password := flag.String(
|
password := flag.String(
|
||||||
"password",
|
"password",
|
||||||
os.Getenv("GIT_PASSWORD"),
|
os.Getenv("GIT_PASSWORD"),
|
||||||
"password",
|
"The password for authenticating to the remote. Can also be specified via the environment variable GIT_PASSWORD.",
|
||||||
)
|
)
|
||||||
remoteUrl := flag.String(
|
remoteUrl := flag.String(
|
||||||
"url",
|
"url",
|
||||||
"",
|
"",
|
||||||
"url of remote",
|
"URL to push changes to.",
|
||||||
)
|
)
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue