-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
25 lines (20 loc) · 724 Bytes
/
Copy pathmain.go
File metadata and controls
25 lines (20 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main
import (
"flag"
"fmt"
"os"
"github.com/x0c/agentsync/internal/agentsync"
)
func main() {
opts := agentsync.Options{}
flag.BoolVar(&opts.Check, "check", false, "only inspect; do not modify files")
flag.BoolVar(&opts.Repo, "repo", false, "manage AGENTS.md aliases in the current repository")
flag.StringVar(&opts.All, "all", "", "scan and manage every repository under this directory")
flag.StringVar(&opts.Adopt, "adopt", "", "adopt a reviewed merge draft as the canonical source")
flag.BoolVar(&opts.Force, "force", false, "replace conflicting files after backing them up")
flag.Parse()
if err := agentsync.Run(opts); err != nil {
fmt.Fprintln(os.Stderr, "agentsync:", err)
os.Exit(1)
}
}