29 lines
651 B
Go
29 lines
651 B
Go
// Command assessment-review prints the stored manual-review band of one
|
|
// assessment attempt for an operator and records the read in an audit table.
|
|
// It changes nothing else.
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
"lincodex/backend/internal/adapter/primary/cli/assessmentreview"
|
|
)
|
|
|
|
func main() {
|
|
os.Exit(run())
|
|
}
|
|
|
|
func run() int {
|
|
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
|
defer stop()
|
|
if err := assessmentreview.Run(ctx, os.Args[1:], os.LookupEnv, os.Stdout); err != nil {
|
|
_, _ = fmt.Fprintf(os.Stderr, "assessment-review: %v\n", err)
|
|
return 2
|
|
}
|
|
return 0
|
|
}
|