36 lines
1,009 B
Markdown
36 lines
1,009 B
Markdown
# agedit
|
|
|
|
open an age encrypted file in $EDITOR
|
|
|
|
## cli
|
|
`go install git.burning.moe/celediel/agedit/cmd/agedit@latest`
|
|
|
|
`agedit [flags] filename`
|
|
|
|
### flags
|
|
|
|
```text
|
|
--identity value, -i value age identity file to use
|
|
--out value, -o value write to this file instead of the input file
|
|
--log value, -l value log level (default: "warn")
|
|
--editor value, -e value specify the editor to use
|
|
--help, -h show help
|
|
--version, -v print the version
|
|
```
|
|
|
|
## library
|
|
<!-- 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`
|
|
|
|
See `./cmd/agedit/agedit.go` for example usage.
|