Added some more commands and mades some quality of life improvements
All checks were successful
Build / build (push) Successful in 4m27s
All checks were successful
Build / build (push) Successful in 4m27s
This commit is contained in:
parent
3a23118036
commit
3cb5795ca5
17 changed files with 432 additions and 75 deletions
15
appctx.go
Normal file
15
appctx.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"ucl.lmika.dev/ucl"
|
||||
)
|
||||
|
||||
type uclInstKeyType struct{}
|
||||
|
||||
var uclInstKey = uclInstKeyType{}
|
||||
|
||||
func uclInstFromContext(ctx context.Context) *ucl.Inst {
|
||||
return ctx.Value(uclInstKey).(*ucl.Inst)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue