Промежуточный набросок для управления правилами

This commit is contained in:
Alexander Zhirov 2025-05-27 03:53:59 +03:00
parent db9a6be9f4
commit 573f1d7d51
Signed by: alexander
GPG key ID: C8D8BE544A27C511
6 changed files with 135 additions and 2 deletions

View file

@ -21,6 +21,7 @@ int main(string[] args)
.optional
)
)
.add(new Command("retracking", "Tracking rules update"))
.add(new Command("status", "Checking the status of tracked files"))
.add(new Command("diff", "Show changed data"))
.add(new Command("import", "Import snapshot from a tar.gz archive")
@ -160,6 +161,9 @@ int main(string[] args)
i.option("author", ""),
i.option("email", "")
)
)
.on("retracking", e =>
(new SnagRules(config)).create()
);
} catch (SnagException e) {
e.print();