• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-cli / 24460950690

15 Apr 2026 02:41PM UTC coverage: 86.079% (-0.02%) from 86.103%
24460950690

Pull #1614

github

web-flow
Merge 2b76e6c0d into c8a3e5599
Pull Request #1614: Improve error handling and error readability for all commands

918 of 1230 branches covered (74.63%)

Branch coverage included in aggregate %.

14 of 16 new or added lines in 2 files covered. (87.5%)

5018 of 5666 relevant lines covered (88.56%)

87.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/packages/cli/bin/execute.js
1
#!/usr/bin/env node
2
const fs = require("fs");
10✔
3
const resolve = require("resolve");
10✔
4
const path = require("path");
10✔
5
const { hideBin } = require("yargs/helpers");
10✔
6

7
const args = hideBin(process.argv);
10✔
8

9
//execute -g igniteui-cli in case there is no project installed, else resolve to the local one
10
resolve("igniteui-cli", { basedir: process.cwd() }, function (err, res) {
10✔
11
        let cli;
12
        if (res && res.indexOf(process.cwd()) > -1) {
10!
13
                const localVersion = require(path.join(process.cwd(), "node_modules/igniteui-cli/package.json"))["version"];
10✔
14
                const globalVersion = require(path.join(__dirname, "../package.json"))["version"];
10✔
15
                if (globalVersion !== localVersion) {
10!
16
                        console.log("Different igniteui-cli global and local version");
×
17
                }
18
                cli = require(res);
10✔
19
        } else {
20
                cli = require("../lib/cli");
×
21
        }
22
        cli.run(args).catch(function (err) {
10✔
NEW
23
                console.error("Error: " + (err.message || err));
×
NEW
24
                process.exit(1);
×
25
        });
26
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc