agedit/README.md

36 lines
1,009 B
Markdown
Raw Normal View History

2024-03-11 18:17:53 -04:00
# agedit
open an age encrypted file in $EDITOR
## cli
2024-03-11 20:41:39 -04:00
`go install git.burning.moe/celediel/agedit/cmd/agedit@latest`
2024-03-11 18:17:53 -04:00
`agedit [flags] filename`
### flags
2024-03-11 20:41:39 -04:00
```text
--identity value, -i value age identity file to use
--out value, -o value write to this file instead of the input file
2024-03-11 18:17:53 -04:00
--log value, -l value log level (default: "warn")
2024-03-11 20:41:39 -04:00
--editor value, -e value specify the editor to use
2024-03-11 18:17:53 -04:00
--help, -h show help
--version, -v print the version
```
## library
2024-03-11 20:41:39 -04:00
<!-- TODO: figure out how to get this in one package/get/import whatever -->
for environmental variable loading:
`go get git.burning.moe/celediel/agedit/pkg/env@latest`
for opening files with editor:
`go get git.burning.moe/celediel/agedit/pkg/editor@latest`
for encrypting files:
`go get git.burning.moe/celediel/agedit/pkg/encrypt@latest`
for generating temporary filenames:
`go get git.burning.moe/celediel/agedit/pkg/tmpfile@latest`
2024-03-11 18:17:53 -04:00
See `./cmd/agedit/agedit.go` for example usage.