initial commit

This commit is contained in:
2026-01-04 21:26:49 +01:00
commit 8e83c99620
12 changed files with 11958 additions and 0 deletions

24
cmd/oplcli.go Normal file
View File

@@ -0,0 +1,24 @@
package cmd
import (
oplcli "git.kapelle.org/niklas/opl-cli/internal"
"github.com/alexflint/go-arg"
)
type ScanCmd struct {
File string `arg:"positional"`
}
type args struct {
Scan *ScanCmd `arg:"subcommand:scan"`
}
func Run() {
var args args
arg.MustParse(&args)
switch {
case args.Scan != nil:
oplcli.Scan(args.Scan.File, oplcli.Config{})
}
}