feat(client): ignore rule in .lodge

This commit is contained in:
hh committed 2026-10-02 21:59:27 +00:00
1 parent 4207f7e6f8
commit 45c81cfcaf
8 files changed
+146 -18

No files matched your search

+4 -1
View File
@@ -169,7 +169,10 @@ func showStatus(ctx context.Context, c *client.Client, dir string, asJSON bool)
fmt.Printf("%s\nkey %s, branch %s, revision %d\n\nrules:\n", report.Root, report.Key, report.Branch, report.Revision)
for _, rule := range report.Rules {
kind := "branch"
if rule.Shared {
switch {
case rule.Ignore:
kind = "ignore"
case rule.Shared:
kind = "shared"
}
fmt.Printf(" %s %s\n", kind, rule.Path)