Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-10-04 02:18:47 +01:00
parent a3202aaff3
commit 948872b933
7 changed files with 206 additions and 150 deletions

18
internal/zet/edit.go Normal file
View file

@ -0,0 +1,18 @@
package zet
import (
"path"
"strconv"
"code.oliverdavies.uk/opdavies/cmd-zet/internal/config"
"code.oliverdavies.uk/opdavies/cmd-zet/internal/file"
)
func EditZet(id int) {
zetPath := path.Join(config.GetZetDir(), strconv.Itoa(id), "index.adoc")
file.Edit(zetPath)
onSave(id)
}