Matt Low
0a27b9a8d3
- Split pkg/cli/cmd.go into new pkg/cmd package - Split pkg/cli/functions.go into pkg/lmcli/tools package - Refactor pkg/cli/openai.go to pkg/lmcli/provider/openai Other changes: - Made models configurable - Slight config reorganization
19 lines
288 B
Go
19 lines
288 B
Go
package main
|
|
|
|
import (
|
|
"git.mlow.ca/mlow/lmcli/pkg/lmcli"
|
|
"git.mlow.ca/mlow/lmcli/pkg/cmd"
|
|
)
|
|
|
|
func main() {
|
|
ctx, err := lmcli.NewContext()
|
|
if err != nil {
|
|
lmcli.Fatal("%v\n", err)
|
|
}
|
|
|
|
root := cmd.RootCmd(ctx)
|
|
if err := root.Execute(); err != nil {
|
|
lmcli.Fatal("%v\n", err)
|
|
}
|
|
}
|