ssm-browse: new utility to browse SSM parameters

This is more of an exercise to work out how best to use controllers
This commit is contained in:
Leon Mika 2022-03-29 08:41:27 +11:00
parent 46be54b5fb
commit 0b745a6dfa
14 changed files with 348 additions and 5 deletions

View file

@ -0,0 +1,18 @@
package logging
import (
"fmt"
tea "github.com/charmbracelet/bubbletea"
"os"
)
func EnableLogging() (closeFn func()) {
f, err := tea.LogToFile("debug.log", "debug")
if err != nil {
fmt.Println("fatal:", err)
os.Exit(1)
}
return func() {
f.Close()
}
}