aact 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cli/index.mjs +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,8 @@ CLI и библиотека для валидации, анализа и ген
|
|
|
19
19
|
|
|
20
20
|
<img src="https://github.com/Byndyusoft/aact/assets/1096954/a3c3b3b0-a09b-4da7-aca4-5538159b371c" width="15"/> Телеграм-канал: [Архитектура распределённых систем](https://t.me/rsa_enc)
|
|
21
21
|
|
|
22
|
+
aact можно использовать двумя способами: как **CLI** (`npx aact check`, авто-фикс, генерация артефактов) или как **библиотеку** (импортировать `checkAcl`, `analyzeArchitecture` и пр. в свои тесты на vitest/jest). CLI — ниже, library-режим — в [соответствующем разделе](#использование-как-библиотеки).
|
|
23
|
+
|
|
22
24
|
## Quick Start (CLI)
|
|
23
25
|
|
|
24
26
|
В пустой папке:
|
package/dist/cli/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import pc from 'picocolors';
|
|
|
10
10
|
import 'yaml';
|
|
11
11
|
import 'plantuml-parser';
|
|
12
12
|
|
|
13
|
-
const version = "2.1.
|
|
13
|
+
const version = "2.1.4";
|
|
14
14
|
|
|
15
15
|
const loadAndValidateConfig = async (configPath) => {
|
|
16
16
|
const { config } = await loadConfig({
|
|
@@ -715,7 +715,12 @@ const handleFixMode = async (model, results, config, dryRun) => {
|
|
|
715
715
|
consola.info("No auto-fixes available for these violations");
|
|
716
716
|
exitWithViolations();
|
|
717
717
|
}
|
|
718
|
+
console.log(
|
|
719
|
+
pc.bold(dryRun ? "Suggested fixes (dry run):" : "Applying fixes:")
|
|
720
|
+
);
|
|
721
|
+
console.log();
|
|
718
722
|
formatFixes(fixes);
|
|
723
|
+
console.log();
|
|
719
724
|
if (!dryRun) {
|
|
720
725
|
await writeFixes(config, fixes);
|
|
721
726
|
}
|