Skip to content

Commit 98f6206

Browse files
committed
Add unit tests for Acquisition, Hash, and Management SDKs
- Implement tests for the Acquisition SDK to validate update queries and package management. - Create tests for hashing utilities, including package hash generation from files and directories. - Develop comprehensive tests for the Management SDK, covering app and deployment management functionalities.
1 parent 5681aee commit 98f6206

34 files changed

Lines changed: 3246 additions & 946 deletions

‎script/cli.ts‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎script/hash-utils.ts‎

Lines changed: 0 additions & 241 deletions
This file was deleted.

‎script/index.ts‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎src/cli.ts‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env node
2+
3+
4+
import chalk from "chalk";
5+
import * as parser from "./commands/parser";
6+
import * as execute from "./commands/executor";
7+
8+
async function run(): Promise<void> {
9+
const command = parser.createCommand();
10+
11+
if (!command) {
12+
parser.showHelp(false);
13+
return;
14+
}
15+
16+
try {
17+
await execute.execute(command);
18+
} catch (error: any) {
19+
console.error(chalk.red(`[Error] ${error.message}`));
20+
process.exit(1);
21+
}
22+
}
23+
24+
void run();

0 commit comments

Comments
 (0)